You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ RedLua uses the [**Easylogging++**](https://github.com/amrayn/easyloggingpp#conf
35
35
36
36
## Scripting
37
37
38
-
RedLua searches for scripts in the `<Your game directory>\RedLua\Scripts\`. Each script located in this folder will be loaded automatically (If the `Autorun feature` is enabled). Every script should return a `table` (can be empty) with functions `OnLoad`, `OnTick`, `OnStop`.
38
+
RedLua searches for scripts in the `<Your game directory>\RedLua\Scripts\`. Each script located in this folder will be loaded automatically (If the `Autorun feature` is enabled). Every script should return a `table` (can be empty) with functions `OnLoad`, `OnTick`, `OnStop`. Almost every function of the RDR2's RAGE is described [here](https://alloc8or.re/rdr3/nativedb/) and [here](https://www.rdr2mods.com/nativedb/index/builtin/).
-- If you press F9 it will knock out all peds around you
104
+
ifmish.iskeyjustup(VK_F9, true) then
105
+
localcnt=native.allpeds(mod.ent_arr) -1
106
+
fori=0, cntdo
107
+
ifmod.ent_arr[i] ~=mod.me_entthen
108
+
TASK:TASK_KNOCKED_OUT(mod.ent_arr[i], 10, false)
109
+
end
110
+
end
111
+
end
103
112
end
104
113
105
114
returnt
@@ -150,8 +159,15 @@ misc.resetkey(VK_*)
150
159
151
160
-- Get game version
152
161
misc.gamever() -- Returns: number, e.g. 1436.31
162
+
163
+
-- Get RedLua version
164
+
misc.libver() -- Returns: integer, e.g. 010, 020, etc.
153
165
```
154
166
167
+
## Contribution
168
+
169
+
This is my first project that uses C++, so I'm not really good at it. If you see some cursed code and you know how to improve it, PRs are welcome.
170
+
155
171
## Thanks
156
172
157
173
Thanks to [Mike Pall](https://github.com/LuaJIT/LuaJIT), [Alexander Blade](https://www.dev-c.com/rdr2/scripthookrdr2/), [alloc8or](https://github.com/alloc8or/rdr3-nativedb-data), [Niels Lohmann](https://github.com/nlohmann/json) and [abumusamq](https://github.com/amrayn/easyloggingpp) for all their awesome work.
0 commit comments