vi/raiser
racing
racing, GTA 6 style illustration
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.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~138 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25
Unlock price
$199Vault

Unlock all 510 prompts

Profit potential / morising
$900($250 to $3,500)

$50-389 script band, sized for a rising niche; top sellers clear around $11.85K/mo.

Effort vs return
advanced1-2 days

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), priced inside the $50-389 FiveM script band against a rising enthusiast niche; top sellers clear around $11.85K/mo (comparable Tebex), scaled for an advanced marquee format.

Trend Signal

rising, 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.