gta6/prompts
casino
Vaultbeginnercasino

Slot Machine

ESX/QBCore standalone 3-reel slot machine with weighted symbols, a configurable paytable and a per-server RTP knob — all server-authoritative.

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
~70 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A standalone 3-reel slot machine prop: walk up, press E to pull, and the reels resolve to a server-rolled outcome with a configurable paytable. Servers buy it because the symbol weights expose a per-server RTP knob, so an owner can keep the slot floor from draining the cash economy.

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/04-slot-machine-reels.lua implements a proximity pull with a double-pull guard, a weighted symbol pool built from a per-server RTP Weights table,…

🔒 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 reels — Claude rolls and pays on the client; keep the weighted Pool, spinReel and payout server-side.
  • Anim before load — the lever TaskPlayAnim no-ops unless the dict is loaded via RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • One-sided net eventslots:result on only one side never renders the spin; both sides need RegisterNetEvent + AddEventHandler.

Corrective re-prompt: Roll the reels from the weighted pool and pay out entirely in server.lua; the client may only trigger slots:pull and render the broadcast slots:result. Charge the bet with removeMoney before rolling and reject under-funded pulls. Guard the lever animation with RequestAnimDict + a HasAnimDictLoaded wait loop, and define slots:pull / slots:result with RegisterNetEvent + AddEventHandler on both sides.

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(), then xPlayer.getMoney() / removeMoney / addMoney for the bet and payout.
  • QBCore: use exports['qb-core']:GetCoreObject() and Player.Functions.RemoveMoney('cash', bet) / AddMoney('cash', win).
  • QBox: use exports.qbx_core:GetPlayer(src) with the shared Functions.AddMoney/RemoveMoney; same weighted-roll flow.

Profit Potential

$80–$900/mo on Tebex (expected ~$250). [INFERRED] priced inside the $50-389 FiveM script band against a saturated commodity niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100), at the low end as a beginner-tier prop.

Trend Signal

saturated — strategy: id-028 names slots; commodity mechanic, per-server RTP config differentiates.

Sales Angle

The economy-safe slot: a per-server RTP knob owners can tune so the floor never drains the cash economy. Recommended Tebex price $59.

Difficulty & Ship Time

beginner · ships in 2-4h.