gta6/prompts
racing
Vaultintermediateracing

Elimination Race — Last Place Out

ESX recurring race that eliminates the last-placed driver every interval until one survivor wins the pot.

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

Description

An ESX elimination race: drivers join, report their progress, and every interval the server eliminates whoever has the lowest progress until a single survivor remains and collects the reward. The whole eliminate-and-survive loop runs server-side so every client agrees on who is out.

Prompt Template

You are writing a FiveM resource for ESX. Produce TWO files (client.lua +…

🔒 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/racing/22-elimination-race.lua. It implements a server-side racers map, a monotonic progress report, an interval thread that eliminates 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 tick — running the elimination loop client-side desyncs who is out; the interval loop must live only on the server.
  • Stale racer entry — not removing an eliminated player breaks the survivor count; delete them from the racers table.
  • Client-side reward — paying the survivor client-side is spoofable; grant via xPlayer.addMoney server-side.

Corrective re-prompt: Move the whole interval elimination loop into a single server CreateThread, set racers[worst] = nil when eliminating, and pay the last survivor only through xPlayer.addMoney before broadcasting elim:winner.

Framework Integration

  • ESX: ESX.GetPlayerFromId(last).addMoney(reward) pays the survivor; racers is plain server state.
  • QBCore: swap to QBCore.Functions.GetPlayer(last).Functions.AddMoney('cash', reward) for the survivor payout.
  • QBox: use qbx_core's GetPlayer + AddMoney; the tick, progress map, and elimination logic are unchanged.

Profit Potential

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

Trend Signal

rising — inferred: [INFERRED] last-place-elimination is a distinct hooky format; rising.

Sales Angle

Sell as a high-tension event format that fills a server lobby — the last-place-out drama keeps spectators watching. Recommended Tebex price $169.

Difficulty & Ship Time

intermediate · ships in 1 day.