Configuration
The few files you can edit in the Casino Wheel Editor.
You design the wheel in game with /wheel_editor, see How it works. The files below cover the rest. Restart gg_casinowheel after you edit one.
| File | What you change there |
|---|---|
config/server/admins.lua | Who can use the editor, by license2. See Installation. |
config/shared/wheel.lua | command: the editor command, default wheel_editor. Leave the rest of this file as it is: it holds the wheel model, its texture names and the fallback design. |
config/lang.lua | Messages and the K, M and B number abbreviations |
base/client/open/onPlayerLoad.lua | Events that load the zones when a player spawns |
Custom frameworks
Zones load when a player spawns. onPlayerLoad.lua already listens for the QBCore, Qbox and ESX player-loaded events and for playerSpawned. If your framework uses a different event, replace myframework:client:OnPlayerLoaded in that file with your event name:
Lua
RegisterNetEvent('myframework:client:OnPlayerLoaded', function()
GG_CasinoWheel.refreshZones()
end)
