How it works
Open the editor, design a wheel preset, make it live and set the zones where it shows.
Open the editor
Type /wheel_editor. Only admins in config/server/admins.lua have the command; anyone else gets Access denied. or no command at all.
The editor has two tabs, Wheel Presets and Wheel Zones. The buttons are icons: hover over one to see its name.
Presets
A preset is one complete wheel design. One preset is active at a time, and that design shows on the wheel for every player.
| Button | What it does |
|---|---|
| Load | Makes the preset the active design. Every player sees it straight away. |
| Edit | Opens the preset in the design editor |
| New | Creates a preset |
| Delete | Deletes the preset. If it was active, the first remaining preset becomes active. |
Design a preset
- Click Edit on a preset, or New. A preview wheel appears in front of you.
- Set the Preset name and a short description.
- Work through the options:
| Option | What you change |
|---|---|
| Logo | The centre logo image and how it fits |
| Icons | The image in each icon slot |
| Amounts | The amount text on each segment and the currency symbol |
| Labels | The MYSTERY, DISCOUNT, CLOTHING and VEHICLE labels |
| Theme | Wood, metal, Wheel Texture 1 and Wheel Texture 2, each a solid colour, a gradient or an image, with opacity. These apply only with Show default wheel texture turned off; while it is on, the stock wheel artwork shows. |
- Spin the preview to check it: drag the wheel, use the left and right buttons, or reset its rotation.
- Click Save.
Saving the active preset updates it for every player. Saving another preset changes nothing in the world until you Load it.
Use your own images
Every image field takes a URL or a path. To use a file, put it in gg_casinowheel/dui/assets/, restart gg_casinowheel, and enter the path from that folder, for example ../assets/my_logo.png. PNG and GIF both work.
Zones
The design shows only while a player is inside a zone and the lucky wheel prop is within 100 metres of them. Outside every zone the wheel keeps its normal look.
| Button | What it does |
|---|---|
| New Zone | Creates a zone |
| Edit | Changes a zone |
| Toggle debug spheres | Shows or hides every zone as a sphere in the world |
| Delete | Deletes a zone |
To add a zone, stand next to your casino wheel and open Wheel Zones. Click New Zone, enter a Zone Name, click Use my position and set the Radius (50 if you leave it empty). Click Save.
All zones show the same active preset. You cannot give different zones different designs.
Where it is saved
Presets, the active preset and zones are saved straight away as JSON files in gg_casinowheel/config/data/. Keep that folder when you update the script, or your designs are replaced by the shipped ones.
