gta6/prompts
phone
Vaultintermediatephone

Ride-Hailing App

ESX/QBCore/QBox phone app to request a ride with a server fare estimate, surge pricing, driver/rider ratings, and live ETA.

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

Description

A ride-hailing phone app: a rider requests a pickup, gets a server-calculated fare with live surge pricing, is matched to an on-duty driver with an ETA, and both parties rate each other afterward. It is the rider-facing marketplace layer over any taxi job, turning a static gig into a supply/demand economy.

Prompt Template

You are writing a FiveM resource for esextended (exports['esextended']:getSharedObject()).

πŸ”’ 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/phone/21-ride-hailing-app.lua. It implements a server fare estimate with a live surge multiplier from the driver/rider ratio, a re-validated fare…

πŸ”’ 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-trusted fare β€” Claude computes fare/surge and pays the driver on the client; fares are forged. Keep fare math, surge and payout server-side and re-compute on confirm.
  • Anim before load β€” TaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • One-sided net event β€” defining ride:matched/driverInbound on only one side breaks dispatch; both client and server use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Move all fare logic to the server: compute base + distance*rate * surge, re-validate the fare on confirm (ignore the client's quoted value), removeMoney once, pay the driver cut once, and store ratings as sum/count. The client must only request, render and play the wave anim. Never price or pay from the client."

Framework Integration

  • ESX: as written β€” exports['es_extended']:getSharedObject(), xPlayer.removeMoney(fare) and driver.addMoney(cut).
  • QBCore: swap to exports['qb-core']:GetCoreObject(), Player.Functions.RemoveMoney('cash', fare) and Player.Functions.AddMoney('cash', cut); match via QBCore.Functions.GetPlayersOnDuty('taxi').
  • QBox: use exports.qbx_core:GetPlayer(src) then player.Functions.RemoveMoney/AddMoney; surge and ratings logic are identical.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] priced inside the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo); a stable taxi-RP niche with steady unit volume.

Trend Signal

β†’ stable β€” strategy: MASTER-200 id-037 Ride-Hailing App verbatim (MASTER-200.md:117); steady taxi-job pairing.

Sales Angle

The rider-side companion to any taxi job β€” surge pricing and ratings turn a static gig into a live marketplace. Recommended Tebex price $189.

Difficulty & Ship Time

intermediate Β· ships in 3-5h.