diff options
Diffstat (limited to 'docs/lua-modding.md')
| -rw-r--r-- | docs/lua-modding.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/lua-modding.md b/docs/lua-modding.md index 819250707..3231797ed 100644 --- a/docs/lua-modding.md +++ b/docs/lua-modding.md | |||
| @@ -192,10 +192,11 @@ alone; a mod can have both. Load order is the folder names', sorted. | |||
| 192 | 192 | ||
| 193 | - `leonida.teleport(x, y, z [, hold_seconds])` (true line, or nil and why) and `leonida.player_position()` (x, y, z) move | 193 | - `leonida.teleport(x, y, z [, hold_seconds])` (true line, or nil and why) and `leonida.player_position()` (x, y, z) move |
| 194 | and read the player by memory, once the runtime knows where the player is (`docs/mod-menu.md`, "Teleport by memory"). | 194 | and read the player by memory, once the runtime knows where the player is (`docs/mod-menu.md`, "Teleport by memory"). |
| 195 | - God mode, wanted level, vehicles, weapons, weather, time of day: these are the title's own script | 195 | - God mode, wanted level, vehicles, weapons, weather, time of day: there is no `leonida.player` and no |
| 196 | functions, which the runtime cannot call (no table of them was found in the executable, `docs/mod-menu.md`), so | 196 | `leonida.world` yet. With `LEONIDA_GAME_ACTIONS=1` the F4 menu does wanted level, time of day, weather and the |
| 197 | there is no `leonida.player` and no `leonida.world`. A mod that wants them has the memory API and has to find the | 197 | title's own cheats through the title's own code (`docs/mod-menu.md`, "Game actions"), and |
| 198 | addresses itself. | 198 | `leonida.player_position()` is the ped's own position then; that is not offered to mods until it has run in the |
| 199 | title. A mod that wants the rest has the memory API and has to find the addresses itself. | ||
| 199 | - Anything online, any file outside the mod's folder, any process or library: not offered, on purpose. | 200 | - Anything online, any file outside the mod's folder, any process or library: not offered, on purpose. |
| 200 | - No keys, decryption or protection workarounds, and no game data in the repository: a mod holds its own script and | 201 | - No keys, decryption or protection workarounds, and no game data in the repository: a mod holds its own script and |
| 201 | the addresses its author found, not pieces of the title. | 202 | the addresses its author found, not pieces of the title. |