vi/raiser
racing
racing, GTA 6 style illustration
Vaultintermediateracing

Daily Rotating Time Attack

ESX rotating daily featured track with a daily-reset leaderboard and a play-streak cash reward.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~109 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
intermediate1 day

Description

An ESX daily time attack: the server derives the day's featured track from a UTC day index, runs a leaderboard that resets each day, and pays a streak-scaled reward the first time a player finishes a run that day. The clock is started and stopped server-side, so finish times cannot be spoofed.

Prompt Template

You are writing a FiveM resource for ESX. 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/20-daily-time-attack.lua. It implements a UTC day-index track rotation, a server-timed run via GetGameTimer, a per-identifier daily best…

🔒 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 runs, trusting submitted milliseconds is spoofable; start and stop the clock with server-side GetGameTimer.
  • Client-picked track/reset, the featured track and board reset must derive from one server day index, not each client.
  • Per-finish streak, bumping the streak on every finish inflates rewards; gate it to once per UTC day via lastPlayDay.

Corrective re-prompt: Record startTimes[src] server-side on begin and compute elapsed from GetGameTimer on finish, derive the track from math.floor(os.time()/86400), and only bump the streak + reward when lastPlayDay[id] differs from today.

Framework Integration

  • ESX: xPlayer.identifier keys the board and streak; xPlayer.addMoney(reward) pays the streak bonus.
  • QBCore: use QBCore.Functions.GetPlayer(src).PlayerData.citizenid as the board key and AddMoney('cash', reward).
  • QBox: identical to QBCore via qbx_core's GetPlayer; the day-index and timing logic is unchanged.

Profit Potential

$250-$3500/mo on Tebex (expected ~$900), priced inside the $50-389 FiveM script band against a rising live-ops niche; top sellers clear around $11.85K/mo (comparable Tebex), scaled for an intermediate retention loop.

Trend Signal

rising, inferred: daily rotating time-attack loops boost retention; rising with live-ops servers.

Sales Angle

Sell as a retention loop, a fresh featured track every day plus a streak reward that pulls players back daily. Recommended Tebex price $149.

Difficulty & Ship Time

intermediate · ships in 1 day.