gta6/prompts
casino
Vaultintermediatecasino

European Roulette Wheel

ESX/QBCore single-zero roulette with a full inside/outside bet grid and a server-authoritative spin synced across the whole table.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~88 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A single-zero (European) roulette table with the full inside/outside bet grid where every player at the table sees the same spin resolve to the same number. Servers buy it because the winning number is rolled on the server, so a 36x straight-up hit can't be spoofed from the client.

Prompt Template

You are writing a FiveM resource for esextended (stable, exports getSharedObject).

πŸ”’ Eyes-only β€” locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth β€” both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access β€” pay once
Most Popular Β· Best Value
Vault$199one-time
  • All 510 prompts β€” the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates β€” new niches as the market moves
Get the Vault β€” $199

$49 for 60 Β· $199 for all 510 + intelligence β€” one-time, no subscription.

Expected Output

The reference Lua at content/expected-outputs/casino/02-european-roulette-wheel.lua implements a proximity bet grid, a server-side red/black lookup with colorOf, stake validation and escrow, a server…

πŸ”’ Eyes-only β€” locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth β€” both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access β€” pay once
Most Popular Β· Best Value
Vault$199one-time
  • All 510 prompts β€” the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates β€” new niches as the market moves
Get the Vault β€” $199

$49 for 60 Β· $199 for all 510 + intelligence β€” one-time, no subscription.

Known Failure Modes & Corrective Prompt

  • Client-rolled number β€” Claude rolls the result client-side; keep math.random(0,36) and payoutFor on the server only.
  • Anim before load β€” the ball-spin TaskPlayAnim no-ops unless the dict is loaded via RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • One-sided net event β€” roulette:spinResult on only one side breaks the shared spin; both sides need RegisterNetEvent + AddEventHandler.

Corrective re-prompt: Roll the winning number and compute every payout in server.lua with math.random(0,36); the client may only send its bet list and render the broadcast result. Escrow the summed stake before rolling and reject under-funded players. Guard the ball-spin animation with RequestAnimDict + a HasAnimDictLoaded wait loop, and define roulette:spin / roulette:spinResult with RegisterNetEvent + AddEventHandler on both sides.

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(), then xPlayer.getMoney() / removeMoney / addMoney for stake escrow and payouts.
  • QBCore: use exports['qb-core']:GetCoreObject() and Player.Functions.RemoveMoney('cash', staked) / AddMoney('cash', winnings).
  • QBox: use exports.qbx_core:GetPlayer(src) with the shared Functions.AddMoney/RemoveMoney; same server-RNG flow.

Profit Potential

$100–$1100/mo on Tebex (expected ~$320). [INFERRED] priced inside the $50-389 FiveM script band against a saturated core-table niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100), discounted for ubiquity.

Trend Signal

β†˜ saturated β€” strategy: id-028 core table game; roulette ubiquitous across Tebex casino packs.

Sales Angle

Position as the clean, server-RNG roulette in a sea of client-rolled clones β€” one wheel, every seat synced. Recommended Tebex price $99.

Difficulty & Ship Time

intermediate Β· ships in 1 day.