|
| 1 | +# Config |
| 2 | + |
| 3 | +### LOCALES |
| 4 | + |
| 5 | +- This script is using ox_lib locales. You can edit values in `locales/*.json`. If you add your language, you can send it us in our discord and we will add it to our script. |
| 6 | + |
| 7 | +### LOGS |
| 8 | + |
| 9 | +To Configure logs go to `s_config.lua` and put here your discord webhook |
| 10 | + |
| 11 | +- if you want to edit logs logic go to `server/editable/editable_logs.lua` on function called `sendLog` |
| 12 | + |
| 13 | +```lua filename="s_config.lua" |
| 14 | +--- your webhook logs |
| 15 | +---@type string |
| 16 | +SConfig.Webhook = 'your_webhook_here' |
| 17 | +``` |
| 18 | + |
| 19 | +### INTERACTIONS |
| 20 | + |
| 21 | +- This script has implemented 2 interactions system. |
| 22 | + - Prompt - Default GTA system, the notification in left corner to press `E` |
| 23 | + - ox_target - Third-eye targeting system |
| 24 | +- You can switch beetwen them in `config.lua` in field called `Config.Interaction` |
| 25 | + |
| 26 | +```lua filename="config.lua" |
| 27 | +--- defining which system will be used to interact with locations |
| 28 | +---@type 'ox_target' | 'prompt' |
| 29 | +Config.Interaction = 'ox_target' |
| 30 | +``` |
| 31 | + |
| 32 | +### KILL CONFIRMATION |
| 33 | + |
| 34 | +- Every time when some player wants another player to seat on electric chair, another player would be asked of confirmation to do that. If you wanna to disable it and allows players to force other to be killed you can do it in `config.lua` and set field called `Config.NeedConfirmationToKill` to `false` |
| 35 | + |
| 36 | +```lua filename="config.lua" |
| 37 | +---@type boolean |
| 38 | +Config.NeedConfirmationToKill = true |
| 39 | +``` |
| 40 | + |
| 41 | +### LOCATIONS |
| 42 | + |
| 43 | +The script has pre-configured electric chair from [Wuja Death Room](https://wuja-maps.tebex.io/package/6312401). All locations is configurable in `config.lua` in array field called `Config.Locations`. You can add more locations with electric chairs |
| 44 | + |
| 45 | +```lua filename="config.lua" |
| 46 | +---@type Location[] |
| 47 | +Config.Locations = { |
| 48 | + --// NOTE: That script requires wuja_death_room (PURCHASE: https://wuja-maps.tebex.io/package/6312401) |
| 49 | + { |
| 50 | + chair = { |
| 51 | + coords = vec3(1997.16, -1471.64, 48.19), |
| 52 | + seatCoords = vec4(1997.16, -1471.64, 47.1330, 326.1991) |
| 53 | + }, |
| 54 | + enableElectric = { |
| 55 | + coords = vec3(1999.3041, -1474.8317, 49.0260), |
| 56 | + animCoords = vec4(1999.6069, -1474.5575, 47.5919, 147.2450) |
| 57 | + } |
| 58 | + }, |
| 59 | +} |
| 60 | +``` |
0 commit comments