vi/raiser
casino
casino, GTA 6 style illustration
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.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~110 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25
Unlock price
$199Vault

Unlock all 510 prompts

Profit potential / morising
$900($250 to $3,500)

$50-389 script band, sized for a rising niche; top sellers clear around $11.85K/mo.

Effort vs return
advanced1 day

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), priced inside the $50-389 FiveM script band against a rising sportsbook-adjacent niche; top sellers clear around $11.85K/mo (comparable Tebex).

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.