Lucky Wheel
Physical Lucky Wheel prop with weighted prizes, optional podium vehicle prize, and Admin placement. Runs through tgg-casino-tables (same ensure as other table games).
Resource
luaensure tgg-slots-props -- required for custom TGG wheel / cabinet models; before server ensure tgg-slots-server ensure tgg-casino-tables
Dependencies
tgg-slots-server(required)tgg-casino-tables(required)tgg-slots-props(required for customtgg_luckywheel*/tgg_lucky_wheel_*models; start beforetgg-slots-server)
Prop variants
Place wheels from Casinos → Add placement → Lucky Wheel. Models are listed in tgg-casino-tables/config/luckywheel.lua (LuckywheelModels).
| Variant | Models (examples) | Notes |
|---|---|---|
| Vanilla | vw_prop_vw_luckywheel_02a (+ stand vw_prop_vw_luckywheel_01a) | Rockstar Diamond Casino-style disc + stand; physical wheel spin |
| Custom disc (DUI) | tgg_luckywheel, tgg_luckywheel_01 … tgg_luckywheel_04 | Custom props from tgg-slots-props; animated DUI prize face |
| Mono cabinet (DUI) | tgg_lucky_wheel_01b … tgg_lucky_wheel_05b | Single cabinet prop; face spin is DUI (no separate disc) |
Custom disc and cabinet variations each use a unique face texture bind, so multiple DUI wheels can sit side-by-side without clashing.
Features
- Weighted prize segments (money, items, custom events, podium vehicle)
- Cooldown and chip cost configured per wheel in Admin → Lucky Wheel settings
- Spectator sync for nearby players
- Optional podium vehicle prize with exclusivity and delivery arming
Podium vehicle
Per-wheel settings in Admin → Lucky Wheel settings:
- Spawn preview vehicle (checkbox) + preview coords
- Vehicle model (spawn code) and captured tuning (
vehicleProps) - Exclusivity: week / biweek / month
- Sync with other wheels (shared exclusivity among sync-enabled wheels)
- Arm delivery — enables the configured drive-in marker; drive a tuned vehicle into it to capture model + mods
Delivery marker coords are set once in tgg-casino-tables/config/luckywheel.lua → Config.Luckywheel.VehicleDelivery.
Grant hook — GiveVehicle
When a player wins the vehicle prize, the server calls:
luaGiveVehicle(source, vehicleProps, meta)
Implement this in:
tgg-casino-tables/server/custom/vehicle/GiveVehicle.lua
| Arg | Meaning |
|---|---|
source | Winner server id |
vehicleProps | Full properties table (model, colors, mods, plate, …) |
meta | { tableId, machineId, model, label } |
Return true on success. Until implemented, vehicle wins fail closed and log a stub warning.
See also Integrations.
Configuration
- Per-wheel prizes, cost, cooldown, vehicle: Admin → Lucky Wheel settings / placement edit
- Models, distances, DUI owner radius, vehicle delivery marker (editable):
tgg-casino-tables/config/luckywheel.lua