gta6/prompts
racing
Vaultadvancedracing

Photo-Finish & Replay Cam

A framework-agnostic finish-line system that server-timestamps crossings to detect near-ties and triggers a short slow-motion replay cam.

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

Description

A finish-line system that timestamps each racer's crossing on the server, calls a photo finish when two crossings fall inside a tie window, and rolls a short slow-motion replay cam over the line for the affected racers. It sells as the highlight-clip feature — the dramatic photo-finish moment that gives servers shareable content stock racers can't produce.

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/30-photo-finish-replay.lua arms racers, detects each crossing client-side, has the server timestamp and sort crossings to assign places and flag…

🔒 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

  • Disputed winner — a client-decided near-tie makes racers disagree on the result; the server must timestamp and order crossings.
  • Half-built cam — the replay anim plays before the dict loads, leaving the scene uninitialized; guard with a HasAnimDictLoaded loop.
  • Stuck slow-mo — failing to reset SetTimeScale(1.0) and DestroyCam leaves the player frozen behind a locked camera; always tear down the replay state.

Corrective re-prompt: "Racers dispute the winner and the replay leaves them stuck in slow motion. Timestamp and sort crossings on the server with GetGameTimer to assign places and the near-tie flag, guard the replay cam anim with RequestAnimDict + HasAnimDictLoaded, and on replay exit always restore SetTimeScale(1.0), ClearTimecycleModifier, RenderScriptCams(false,...) and DestroyCam."

Framework Integration

ESX: resolve ESX = exports["es_extended"]:getSharedObject() only if you tie the finish to a payout; the photo-finish and replay are framework-agnostic. QBCore: swap to exports['qb-core']:GetCoreObject() to record results; the crossings table keys off the server id. QBox: use exports.qbx_core:GetPlayer(src) to label the placing racer on a results board.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] Priced inside the $50-389 script band against the signal-scraper tebex_snapshot corpus (median seller $11.85K/mo, n=100); a niche polish feature sits mid-band with stable demand.

Trend Signal

stable — inferred: [INFERRED] photo-finish + replay cam is a niche polish feature; stable demand.

Sales Angle

Position the photo finish as the highlight-clip moment that fills a server's social feed. Sell as a premium racing polish add-on at $179 on Tebex.

Difficulty & Ship Time

advanced · ships in 1 day.