vi/raiser
racing
racing, GTA 6 style illustration
Vaultbeginnerracing

Finish-Position Payout Tiers

ESX server-authoritative payout that pays cash + rep tiers by the order racers cross the finish line.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~58 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 / mostable
$500($150 to $2,000)

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

Effort vs return
beginner2-4h

Description

An ESX finish-line payout: as racers cross, the server assigns each the next finishing position and pays the matching prize tier (cash + rep), falling back to a default tier past the podium. Position is decided by server-side arrival order so two clients can never both claim first.

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/21-finish-position-payout.lua. It implements a server-side arrival-order counter, podium + default prize tiers, a per-player finished guard…

🔒 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-reported position, letting clients send their place lets everyone claim P1; assign position by server arrival order.
  • Client-side payout, granting money on the client is spoofable; pay through xPlayer.addMoney on the server.
  • Double collection, without a per-player guard a racer re-fires cross for multiple payouts; gate with a finished set.

Corrective re-prompt: Drop the client-supplied position, keep a server-side position counter incremented on each cross, guard with finished[src], and pay only via xPlayer.addMoney before sending payout:awarded back.

Framework Integration

  • ESX: xPlayer.addMoney(cash) pays the tier; rep is sent to the client for your rep system to persist.
  • QBCore: swap to QBCore.Functions.GetPlayer(src).Functions.AddMoney('cash', cash) and store rep via player metadata.
  • QBox: use qbx_core's GetPlayer + AddMoney; the arrival-order counter and guard are unchanged.

Profit Potential

$150-$2000/mo on Tebex (expected ~$500), priced inside the $50-389 FiveM script band against a stable economy-tie-in niche; top sellers clear around $11.85K/mo (comparable Tebex), scaled for a beginner drop-in payout.

Trend Signal

stable, inferred: finish-position payout is a standard economy tie-in; steady demand.

Sales Angle

Sell as the economy glue most race scripts are missing, drop-in tiered cash + rep payouts wired to finish order. Recommended Tebex price $69.

Difficulty & Ship Time

beginner · ships in 2-4h.