gta6/prompts
racing
Vaultadvancedracing

Team Relay Race — Driver Handoff

A framework-agnostic team relay where drivers hand off at a pit zone and the server owns each leg time plus the team aggregate.

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

Description

A team race built around a relay: each driver runs a leg, then drives into a pit zone to hand the baton to the next teammate, and the server sums every leg into one authoritative team time. It sells because most racing scripts only handle solo or simple grids — the relay handoff is a distinct, multiplayer-first format that gives servers a fresh event night.

Prompt Template

You are writing a FiveM Lua resource (framework via exports, e.g.

🔒 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/racing/25-team-relay-race.lua registers teams, starts a leg for the active runner, detects a pit-zone handoff with a loaded animation, and lets 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-timed legs — if the client sends its own leg duration, a tampered client posts a fake split and the aggregate is worthless. The server must stamp leg start and end itself.
  • Frozen handoff animTaskPlayAnim fires before the dict is resident; without the HasAnimDictLoaded loop the swap animation never plays.
  • Wrong-runner advance — a relay:handoff with no source check lets any teammate skip the order; the server must compare source to the current runner.

Corrective re-prompt: "The leg times are client-reported and any teammate can advance the relay. Move all timing server-side using GetGameTimer at leg start/handoff, reject a handoff whose source is not the current runner, and guard the handoff TaskPlayAnim with a RequestAnimDict + HasAnimDictLoaded wait loop."

Framework Integration

ESX: resolve ESX = exports["es_extended"]:getSharedObject() to gate team entry fees via xPlayer.removeMoney; the relay timing is framework-agnostic. QBCore: swap to exports['qb-core']:GetCoreObject() and Player.Functions.RemoveMoney for buy-ins; team membership keys off the server id. QBox: use exports.qbx_core:GetPlayer(src) for identity on the team roster and payout.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] Priced inside the $50-389 script band against the signal-scraper tebex_snapshot corpus (median seller $11.85K/mo, n=100); a multiplayer-first relay format earns the upper band for a rising niche.

Trend Signal

rising — inferred: [INFERRED] team-relay handoff racing is an underserved team format; rising.

Sales Angle

Position the relay as the team-night format stock racers can't run. Bundle in a premium racing pack and price at $329 on Tebex.

Difficulty & Ship Time

advanced · ships in 1 day.