gta6/prompts
casino
Vaultintermediatecasino

Greyhound Race Betting

ESX/QBCore track-betting terminal where players wager on a runner and a server-authoritative weighted race resolves the bet and pays the odds.

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

Description

A track-betting terminal where players walk up, pick one of six runners and stake a wager, then a server-run weighted race decides the winner and pays the decimal odds. Servers buy it because it extends a racebook into a second sport with a desync-proof draw that cheaters can't pre-decide.

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/25-greyhound-race-betting.lua implements a proximity terminal with a bet-slip animation and a server-side weighted six-runner race that validates…

πŸ”’ 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 race β€” Claude picks the winner and computes the payout on the client; keep the weighted draw, odds and payout server-side.
  • Anim before load β€” the slip TaskPlayAnim no-ops unless the dict is loaded first via RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • One-sided net event β€” defining greyhound:result on only one side breaks the terminal update; both sides need RegisterNetEvent + AddEventHandler.

Corrective re-prompt: Move the race draw, odds lookup and payout into server.lua, keyed by source; the client may only render what the server broadcasts via greyhound:result. Validate runner and stake server-side, escrow the bet on wager and pay only from the server. Guard the bet-slip animation with RequestAnimDict + a HasAnimDictLoaded wait loop, and define every round-trip event with RegisterNetEvent + AddEventHandler on both sides.

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(), then xPlayer.getMoney() / removeMoney / addMoney for the stake and odds payout.
  • QBCore: swap to exports['qb-core']:GetCoreObject() and use Player.Functions.RemoveMoney('cash', stake) / AddMoney('cash', payout) off QBCore.Functions.GetPlayer(src).
  • QBox: use exports.qbx_core:GetPlayer(src) with the shared player.Functions.AddMoney/RemoveMoney; identical server-authoritative flow.

Profit Potential

$150–$2000/mo on Tebex (expected ~$550). [INFERRED] priced inside the $50-389 FiveM script band against a stable track-betting niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100).

Trend Signal

β†’ stable β€” inferred: Domain: sibling of the horse book, niche track-betting demand.

Sales Angle

Pitch it as the dog-track companion to a horse book: same odds engine, fresh theme. Recommended Tebex price $99.

Difficulty & Ship Time

intermediate Β· ships in 4-8h.