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
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).
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:
Implement this in:
tgg-casino-tables/server/custom/vehicle/GiveVehicle.lua
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