gta6/prompts
business
Vaultbeginnerbusiness

Mobile Food Truck

ESX/QB/QBox mobile vendor business where the owner opens a service window anywhere, cooks menu items into server-owned stock, and sells to walk-up players with all money settled 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
~105 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A mobile food truck business for ESX, QBCore or QBox: the owner drives anywhere, opens a service window, cooks menu items into server-owned stock, sells to walk-up players, and packs up to relocate. Servers buy it as the mobile, go-anywhere twist on the saturated fixed-restaurant script — a low-friction entry product for food RP.

Prompt Template

You are writing a FiveM resource for esextended (exports 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/business/30-mobile-food-truck.lua. It implements a server-owned truck table with open-state, stock and a menu price map, an owner-gated cook that…

🔒 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 stock/price — the client tracks stock and pays itself so a buyer eats free; keep open-state, stock, menu price and vault server-side.
  • Anim before load — the cook TaskPlayAnim no-ops if the dict is not loaded while stock still increments; always RequestAnimDict + a HasAnimDictLoaded wait loop.
  • One-sided notifytruck:notify on one side leaves the buyer without a result; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Keep the truck's open flag, stock table, MENU prices and vault in server.lua, validate item against MENU on every handler, and in truck:requestBuy reject when closed, sold out, or the buyer can't afford the server-side price before debiting them and paying the owner — never trust a price or count the client sends."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); xPlayer.getMoney() / removeMoney for the buyer and seller.addMoney(price) resolved via GetPlayerFromIdentifier.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); Player.Functions.RemoveMoney('cash', price) / AddMoney and key the owner by citizenid.
  • QBox: exports.qbx_core:GetPlayer(src); give cooked items as real ox_inventory stock and attach the service window to the truck vehicle's coords.

Profit Potential

$250–$3000/mo on Tebex (expected ~$850). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), sized for a rising food-RP niche.

Trend Signal

rising — inferred: Mobility (vs fixed restaurant) is the differentiator; rising from food-RP variety demand.

Sales Angle

Position as the mobile, go-anywhere twist on the saturated restaurant script — an easy entry product that upsells into a full food pack. Recommended Tebex price $69.

Difficulty & Ship Time

beginner · ships in 2-4h.