gta6/prompts
casino
Vaultadvancedcasino

Horse-Race Betting Book

ESX/QBCore off-track betting terminal with a live odds board, parimutuel pools and a synced NPC race that resolves payouts.

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

Description

A working off-track betting book: players bet on horses at a terminal that shows a live odds board, their stakes feed parimutuel pools, and on a schedule the server runs a synced NPC race and splits each winning pool back to its backers. It is the underserved sportsbook-adjacent vertical a roleplay server adds to stand out from the standard casino-table packs.

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 lives at content/expected-outputs/casino/10-horse-race-betting-book.lua. It implements a terminal bet event that debits cash into per-horse pools, a single server race loop that…

πŸ”’ 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-side odds/payout β€” Claude computes odds and splits on the client; the payout can be forged. Keep pools, the result and the parimutuel math server-side.
  • Per-client race β€” resolving the race in a client thread gives every player a different winner; resolve once on the server and broadcast to -1.
  • One-sided net event β€” defining otb:oddsBoard/raceResult on only one side breaks the board; both sides need RegisterNetEvent + AddEventHandler.

Corrective re-prompt: The book currently computes odds and payouts on the client and runs the race per-player. Move pools, the bet list, the single race loop and the parimutuel split into server.lua, resolve one winner on os.time(), and have the client only render otb:oddsBoard / otb:raceResult.

Framework Integration

  • ESX: ESX.GetPlayerFromId(src), xPlayer.getMoney() / removeMoney for the stake and addMoney for each parimutuel payout.
  • QBCore: QBCore.Functions.GetPlayer(src) with Player.Functions.RemoveMoney('cash', stake) and AddMoney('bank', payout) per winning bet.
  • QBox: use exports.qbx_core:GetPlayer(src) and the qbx money exports; pair the NPC race with ox_lib scheduling if you want a visible track.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] priced inside the $50-389 FiveM script band against a rising sportsbook-adjacent niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100).

Trend Signal

β†— rising β€” strategy: id-028 names sportsbook; off-track horse betting underserved vs core tables.

Sales Angle

Position as the sportsbook-adjacent gambling vertical that the big casino packs skip β€” a parimutuel off-track horse book with live odds and auto-payout. Recommended Tebex price $189.

Difficulty & Ship Time

advanced Β· ships in 1 day.