vi/raiser
racing
racing, GTA 6 style illustration
Vaultadvancedracing

Drift Scoring, Angle x Speed Combo

Framework-agnostic drift scorer that rewards angle x speed x duration, chains combos, banks on straighten, and zero-outs on spin or collision, with the cash payout validated and capped server-side.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~85 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 / mohot
$1,500($400 to $6,000)

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

Effort vs return
advanced1 day

Description

A drift scorer that rewards slip angle multiplied by speed and duration, chains a combo that grows while you stay sideways, banks the points when you straighten out, and zeroes the combo on a spin or a collision. The cash payout is computed and capped on the server so the flashiest feature in a racing suite can't be turned into a money printer, which is why drift scoring is a flagship paid feature.

Prompt Template

You are writing a FiveM resource for ESX (also resolvable on QBCore/QBox) using 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.

Expected Output

The reference Lua at content/expected-outputs/racing/06-drift-scoring-combo.lua computes a NaN-safe slip angle, grows a combo while sideways, banks on straighten and resets on a health-drop…

🔒 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-paid / uncapped score, paying from the client or trusting an injected mega-score mints unlimited cash; payout must be server-computed and capped.
  • NaN angle, an unclamped acos dot product returns NaN that poisons the combo; clamp the input to [-1, 1].
  • Wall-riding combo, without a collision check via entity-health drops, a player rides a wall to farm score forever.

Corrective re-prompt: Move the payout to the server, clamp it with a per-run maximum before paying, clamp the acos argument to [-1, 1], and reset the combo whenever GetEntityHealth drops between ticks.

Framework Integration

ESX: local ESX = exports['es_extended']:getSharedObject(); pay with xPlayer.addMoney(payout) after ESX.GetPlayerFromId(source). QBCore: Resolve with QBCore.Functions.GetPlayer(source) and pay via Player.Functions.AddMoney('cash', payout). QBox: Use exports.qbx_core:GetPlayer(source) and Player.Functions.AddMoney('cash', payout), only the payout call changes, scoring is framework-free.

Profit Potential

$400-$6000/mo on Tebex (expected ~$1500), priced inside the $50-389 standalone-script band against a corpus of comparable Tebex sellers (median ~$11.85K/mo) for a hot racing niche.

Trend Signal

🔥 hot, corpus: comparable Tebex, drift-scoring is a flagship paid racing-app feature in the top-100.

Sales Angle

Position as the showpiece drift mode, combo multipliers, banked scores, server-capped payouts that survive cheaters. Recommended Tebex price: $149, higher inside a full racing-app bundle.

Difficulty & Ship Time

advanced · ships in 1 day.