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 +…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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.identifierkeys the board and streak;xPlayer.addMoney(reward)pays the streak bonus. - QBCore: use
QBCore.Functions.GetPlayer(src).PlayerData.citizenidas the board key andAddMoney('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). [INFERRED] priced inside the $50-389 FiveM script band against a rising live-ops niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100), scaled for an intermediate retention loop.
Trend Signal
↗ rising — inferred: [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.