gta6/prompts
racing
Vaultadvancedracing

Touge 1v1 Cat-and-Mouse Duel

QBCore 1v1 lead/chase touge duel decided server-side by opening a gap or overtaking across best-of rounds.

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

Description

A QBCore touge duel: two drivers join, and each round one leads while the other chases. The server reads both reported positions against a start line and resolves the round when the chaser overtakes (chaser wins) or the leader opens a gap beyond the threshold (leader wins), swapping roles each round until one driver takes the best-of-three.

Prompt Template

You are writing a FiveM resource for QBCore. Produce TWO files (client.lua +…

🔒 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/23-touge-duel.lua. It implements a server-resolved lead/chase comparison against a start line, role swaps each round, a best-of-three win…

🔒 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-decided rounds — letting clients call their own win double-counts; resolve from both reported positions server-side.
  • No role swap — failing to alternate leadIdx leaves one driver chasing all match; swap it each resolveRound.
  • Forward-reference nil-call — calling beginRound/resolveRound before their local function declaration is nil; declare helpers first.

Corrective re-prompt: Declare beginRound, endMatch, and resolveRound as locals before the net-event handlers, resolve each round only in the server's touge:report from both players' progress, and swap leadIdx inside resolveRound.

Framework Integration

  • QBCore: QBCore.Functions.GetPlayer(src).Functions.AddMoney('cash', reward) pays the match winner.
  • QBox: use qbx_core's GetPlayer + AddMoney; the lead/chase resolution is identical.
  • ESX: not the target here, but swap to exports["es_extended"]:getSharedObject() and xPlayer.addMoney(reward) to port it.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] priced inside the $50-389 FiveM script band against a rising enthusiast niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100), scaled for an advanced marquee format.

Trend Signal

rising — inferred: [INFERRED] touge 1v1 cat-and-mouse duels are a rising enthusiast format.

Sales Angle

Sell to drift/touge enthusiast servers as the marquee 1v1 format — role-swap rounds and a clean gap/overtake resolution. Recommended Tebex price $229.

Difficulty & Ship Time

advanced · ships in 1-2 days.