gta6/prompts
racing
Vaultadvancedracing

Drag Race Staging Tree

ESX/QB/QBox two-lane quarter-mile drag with a server-owned staging-light tree, reaction-time scoring, perfect-launch detection and red-light jump-start penalty.

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

Description

A two-lane quarter-mile drag for ESX, QBCore or QBox: a staging-light tree counts down, the server stamps the green time, and each lane's reaction is scored against it with a perfect-launch window and a red-light penalty for jumping early. Servers sell this because a real staging tree turns a flat sprint into a measurable reaction-time skill game that drag crowds organise events around.

Prompt Template

You are writing a FiveM resource for a two-lane drag race with a staging tree.

πŸ”’ 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/13-drag-staging-tree.lua. It implements a server-stamped green light, movement-based launch detection per lane, reaction-time scoring with a…

πŸ”’ 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-trusted reaction β€” Claude scores the launch locally; keep the green timestamp, reaction math and winner on the server keyed by lane.
  • Rev-in-place launch β€” detecting a control press scores a stationary rev; gate the launch on GetEntitySpeed of the player's vehicle.
  • One-sided net event β€” defining drag:green on only one side leaves the lane waiting forever; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Stamp race.greenAt = GetGameTimer() on the server only, broadcast it via drag:green, and compute reaction = (clientTime - race.greenAt)/1000 server-side; the client must never decide its own reaction time or the winner."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); pay the winner with xPlayer.addMoney from the server-side result handler.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); resolve with QBCore.Functions.GetPlayer(src) and credit via Player.Functions.AddMoney.
  • QBox: use exports.qbx_core:GetPlayer(src) and the same server-side payout on the winning lane.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set for a rising distinct drag format.

Trend Signal

β†— rising β€” inferred: [INFERRED] drag staging-tree with reaction time is a popular distinct format; rising.

Sales Angle

Position as the dedicated drag-strip mode that turns a flat sprint into a reaction-time skill game drag crews run events around. Recommended Tebex price $329.

Difficulty & Ship Time

advanced Β· ships in 1 day.