Description
A one-shot point-to-point sprint: every racer spawns, drives flat-out to a single finish marker, and the first car the server sees cross the line wins. It is the simplest race mode and a commodity — its value is as the clean, server-judged building block inside a paid racing bundle, not as a standalone purchase.
Prompt Template
You are writing a FiveM resource for ESX (QBCore-portable). Produce ONE file with…
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 at content/expected-outputs/racing/02-point-to-point-sprint.lua runs a gated client loop that draws the finish marker and reports a crossing, and a server that locks in the first…
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 decides the winner — each client thinks it won; the lobby disagrees. The server must own the verdict.
- No first-crossing lock — without a
finishedflag, later finish events overwrite the real winner. - Idle marker draw — drawing the finish every frame when no race is active wastes FPS; gate the loop with
Wait(1000)unless racing.
Corrective re-prompt: Move the winner decision entirely to the server, add a finished boolean that ignores every sprint:finished after the first, and make the client loop Wait(1000) whenever racing is false.
Framework Integration
ESX: Resolve the host with ESX.GetPlayerFromId(source) if you want to gate who can start a sprint or attach a reward.
QBCore: Swap the host gate to QBCore.Functions.GetPlayer(source); the broadcast and finish logic are framework-free.
QBox: Use exports.qbx_core:GetPlayer(source) for the host check — the rest is identical, no porting needed.
Profit Potential
$80–$1200/mo on Tebex (expected ~$300). [INFERRED] priced inside the $50-389 standalone-script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo) for a saturated racing niche.
Trend Signal
↘ saturated — inferred: [INFERRED] basic sprint is the most-cloned free racing script; commodity, low willingness-to-pay.
Sales Angle
Position as the dependable, server-judged sprint inside a racing bundle — buyers pay for the suite, this is the no-cheese baseline mode. Recommended Tebex price: $50 standalone, folded into a higher-priced pack.
Difficulty & Ship Time
beginner · ships in 2-4h.