gta6/prompts
racing
Vaultintermediateracing

Race Wager Pot — Winner-Take-All

An ESX/QBCore wager racer where each entrant's buy-in is escrowed server-side into a single pot paid winner-take-all on finish.

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

Description

A wager lobby where every racer pays an equal buy-in that is removed from their balance and escrowed into a single server-held pot; whoever finishes first collects the whole pot. Real stakes are the single strongest race-script selling point, and because money moves only on the server it is safe against the obvious cheats.

Prompt Template

You are writing a FiveM Lua resource (framework via exports, e.g.

🔒 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/racing/08-race-wager-pot.lua escrows each entrant's buy-in into a server-held pot, validates entrants and a fixed buy-in, pays the whole pot to the…

🔒 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 money — calling addMoney/removeMoney on the client lets a player print the pot. Force every balance change onto the server via the framework object.
  • Double settlement — two finish events race and pay out twice; a single settled boolean must gate the payout.
  • Spectator claim — without checking the finisher is in the entrants list, a non-paying player can collect.

Corrective re-prompt: "Money is being changed client-side and the pot can pay out twice. Move every getMoney/removeMoney/addMoney call to the server using the framework player object, add a 'settled' flag that blocks a second payout, and verify the finishing source is in the entrants list before adding the pot."

Framework Integration

ESX: ESX = exports["es_extended"]:getSharedObject(), then xPlayer = ESX.GetPlayerFromId(src) and xPlayer.removeMoney/addMoney for the escrow and payout. QBCore: exports['qb-core']:GetCoreObject(), Player.Functions.RemoveMoney('cash', buyin) and AddMoney('cash', pot) keyed off GetPlayer(src). QBox: exports.qbx_core:GetPlayer(src) with Player.Functions.RemoveMoney/AddMoney; identical escrow flow, just the accessor differs.

Profit Potential

$400–$6000/mo on Tebex (expected ~$1500). [INFERRED] Priced inside the $50-389 script band against the signal-scraper tebex_snapshot corpus (median seller $11.85K/mo, n=100); a hot real-stakes hook sustains the upper band.

Trend Signal

🔥 hot — inferred: [INFERRED] wager racing is among the highest-demand race add-ons; strong willingness-to-pay.

Sales Angle

Lead the listing with "real-stakes street racing — winner takes the pot," the highest-converting race hook. Price at $189 on Tebex, or bundle with a lobby script for $289.

Difficulty & Ship Time

intermediate · ships in 2-4h.