gta6/prompts
phone
Vaultintermediatephone

Food-Delivery App

ESX/QBCore/QBox phone app that orders from owned restaurants, auto-dispatches a courier gig, and live-tracks the order to delivery.

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

Description

A food-delivery phone app: customers browse menus from owned restaurants, place an order that holds payment server-side, and the system auto-dispatches the order to an on-duty courier as a paid gig with live status tracking. It bridges the restaurant and courier economies into one loop civilian-RP servers expect.

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/20-food-delivery-app.lua. It implements server-priced menus, a payment hold on order, per-order courier assignment with 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

  • Client-trusted economy β€” Claude prices and pays on the client; totals and tips get forged. Keep pricing, removeMoney and the courier payout server-side.
  • 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 food:courierGig/orderStatus on only one side breaks the courier round-trip; both client and server use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Move all pricing and payment to the server: compute the total from the menu, removeMoney once on order, store a per-order state machine, assign a courier, and pay the courier cut only on courierDelivered. The client must only render menus, status and play the carry anim. Never compute totals or pay from the client."

Framework Integration

  • ESX: as written β€” exports['es_extended']:getSharedObject(), xPlayer.removeMoney(total) and courier.addMoney(cut).
  • QBCore: swap to exports['qb-core']:GetCoreObject(), Player.Functions.RemoveMoney('cash', total) and Player.Functions.AddMoney('cash', cut); use QBCore.Functions.GetPlayersOnDuty('courier') for assignment.
  • QBox: use exports.qbx_core:GetPlayer(src) then player.Functions.RemoveMoney/AddMoney; order state machine is 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 civilian-RP niche with steady unit volume.

Trend Signal

β†’ stable β€” inferred: Bridges restaurant + courier economies; steady civilian-RP demand.

Sales Angle

The glue between restaurant ownership and the courier job β€” one app that turns two existing economies into a live gig loop. Recommended Tebex price $179.

Difficulty & Ship Time

intermediate Β· ships in 3-5h.