gta6/prompts
casino
Vaultadvancedcasino

Craps Dice Table

ESX/QBCore craps table with a pass/come/odds bet matrix, server-side point state and a synced two-dice throw for 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
~86 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A craps dice table with a pass-line bet (extensible to come/odds/proposition) where the come-out and point phases are tracked on the server and the two-dice throw is synced to the whole table. Servers buy it because craps is rare on Tebex — the bet-matrix and point-state complexity keep supply low, so a correct one stands out.

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/05-craps-dice-table.lua implements a proximity bet matrix, a per-source pass-line pointState, a resolvePass come-out/point resolver, stake…

🔒 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 dice — Claude rolls and tracks the point on the client; keep both dice and pointState server-side.
  • Anim before load — the throw TaskPlayAnim no-ops unless the dict is loaded via RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • One-sided net eventcraps:rollResult on only one side breaks the shared throw; both sides need RegisterNetEvent + AddEventHandler.

Corrective re-prompt: Roll both dice and resolve the pass-line point entirely in server.lua keyed by source; the client may only send its bets and render the broadcast result. Escrow the staked amount before rolling and reject under-funded bets. Guard the throw animation with RequestAnimDict + a HasAnimDictLoaded wait loop, and define craps:throw / craps:rollResult 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', passBet*2) keyed off QBCore.Functions.GetPlayer(src).
  • QBox: not targeted in this spec; the QBCore path runs unchanged under qbx_core if needed via exports.qbx_core:GetPlayer(src).

Profit Potential

$200–$2000/mo on Tebex (expected ~$650). [INFERRED] priced inside the $50-389 FiveM script band against a stable, low-supply niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100), with a scarcity premium for craps.

Trend Signal

stable — inferred: craps far rarer than blackjack/roulette; synced-dice bet-matrix complexity limits supply.

Sales Angle

The table most casino packs skip: craps with real point state and a synced two-dice throw — low supply, high perceived value. Recommended Tebex price $189.

Difficulty & Ship Time

advanced · ships in 1-2 days.