gta6/prompts
racing
Vaultintermediateracing

Race Phone App — Browse, Join, Invite

A QB-family phone/menu app to browse tracks, create or join races, view the leaderboard, and send race invites, with the registry owned server-side.

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

Description

A phone/menu app that turns racing into a social surface: browse the open tracks, spin up or join a race, check the leaderboard, and invite a friend straight to your lobby. It sells on the back of the smartphone-OS trend — servers want every activity reachable from the phone, and a race browser with invites makes pickup races happen without coordinating in chat.

Prompt Template

You are writing a FiveM Lua resource (framework via exports, e.g.

🔒 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/29-race-phone-app.lua routes phone actions to a server that owns the race registry, auto-increments race ids, guards duplicate joins, sorts a…

🔒 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

  • Divergent registries — client-held races make players see different open lobbies and invites point at dead ids; the server must own the registry.
  • Invite spam — broadcasting an invite to -1 notifies the whole server; send it to the target's server id only.
  • Double-join — appending the source with no duplicate guard double-counts a racer; check membership first.

Corrective re-prompt: "Players see different open races and invites go to everyone. Keep the race registry, membership, ids, and leaderboard entirely on the server, guard the join against duplicate sources, and deliver each invite with TriggerClientEvent to the target's server id — never -1."

Framework Integration

ESX: not targeted; to port, resolve ESX = exports["es_extended"]:getSharedObject() and read names from xPlayer.getName(). QBCore: exports['qb-core']:GetCoreObject(); pull display names from GetPlayer(src).PlayerData.charinfo.firstname for invites and the board. QBox: use exports.qbx_core:GetPlayer(src); the registry and membership tables key off the server id.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] Priced inside the $50-389 script band against the signal-scraper tebex_snapshot corpus (median seller $11.85K/mo, n=100); a phone-app social front-end rides the smartphone-OS trend into the upper band for a rising niche.

Trend Signal

rising — inferred: [INFERRED] phone-app race browser/invites ride the smartphone-OS trend; rising.

Sales Angle

Position the app as the social front-end that makes pickup races happen. Sell as a smartphone-OS racing module at $299 on Tebex.

Difficulty & Ship Time

intermediate · ships in 1 day.