gta6/prompts
vehicles
Coreintermediatevehicles

Street Race: Checkpoints, Countdown, Winner

A street race with a 3-2-1 countdown, sequential checkpoint blips, and a server-authoritative first-to-finish winner broadcast.

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

Description

A lightweight street-race resource: an admin starts the race, every participant gets a countdown then a routed blip to checkpoint one, and the marker advances as they pass each point. The first player to clear the final checkpoint reports to the server, which authoritatively declares the winner once and broadcasts it. Perfect for racing servers and event nights.

Prompt Template

You are writing a FiveM resource (no economy framework needed). ONE Lua file with…

🔒 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/vehicles/03-street-race.lua implements the countdown, an adaptive-sleep checkpoint loop, and a server-side raceOver guard that names the first finisher.…

🔒 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

  • Client-decided winner — Claude announces the winner from the finishing client, which a cheater fakes. Require the server to pick the first race:finished it receives.
  • Frame-burning idle loop — a Wait(0) loop that runs even with no active race tanks FPS. Mandate the adaptive local sleep pattern.
  • Blip trail — old checkpoint blips are never removed. Require RemoveBlip before creating the next.
  • No re-arm — the raceOver guard never resets, so only one race ever works. Reset it via SetTimeout or on startrace.

Integration Notes

Split into client.lua / server.lua; fxmanifest.lua lists both with fx_version 'cerulean', game 'gta5'. No framework or DB needed. Make startrace admin-only via your ACE perms. Test: ensure <resource>, run /startrace, drive the route on two clients and confirm only the first to finish is announced.

Profit Potential

$200–$3000/mo on Tebex (expected ~$780). [INFERRED] Standalone race scripts serve a tighter but active racing/event audience; priced mid-band, the server-authoritative anti-cheat is the paid hook.

Trend Signal

rising — vehicle modding/tuning niche-selection 3.75; corpus ox_fuel active.

Sales Angle

Target racing and event-night servers where the server-authoritative first-to-finish shuts down the usual win-faking. Recommend $129 on Tebex as a plug-in race framework.

Difficulty & Ship Time

intermediate · ships in 1 day.