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).
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access β pay once
- All 510 prompts β the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates β new niches as the market moves
$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β¦
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access β pay once
- All 510 prompts β the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates β new niches as the market moves
$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/raceResulton only one side breaks the board; both sides needRegisterNetEvent+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()/removeMoneyfor the stake andaddMoneyfor each parimutuel payout. - QBCore:
QBCore.Functions.GetPlayer(src)withPlayer.Functions.RemoveMoney('cash', stake)andAddMoney('bank', payout)per winning bet. - QBox: use
exports.qbx_core:GetPlayer(src)and the qbx money exports; pair the NPC race withox_libscheduling 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.