Description
A restaurant job script that models the real flow of a kitchen: a customer order becomes a ticket, the ticket queues server-side, a cook crafts it through a timed animation, and the POS settles the bill against the customer's cash. Servers buy it because food RP is one of the densest job categories and a genuine ticket-queue mechanic stands out from the flood of one-prop food scripts.
Prompt Template
You are writing a FiveM resource for QBCore (exports['qb-core']:GetCoreObject()).
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 at content/expected-outputs/business/08-restaurant-kitchen-tickets.lua implements a server-held ticket queue keyed by an incrementing id, a loaded cook animation gating the itemβ¦
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-held queue β if tickets live client-side any worker mints free items. Keep
ticketsandmenuon the server. - Unloaded cook anim β TaskPlayAnim before the dict loads skips the craft beat; require RequestAnimDict + wait-for-load.
- Client-trusted total β never accept a bill amount from the client; sum menu prices server-side.
Corrective re-prompt: Move the tickets and menu tables into the server section, compute the settlement total by iterating the worker's cooked tickets server-side, and verify t.by == source before marking any ticket cooked so a worker cannot complete another's order.
Framework Integration
ESX: swap to exports['es_extended']:getSharedObject(), xPlayer.addInventoryItem, and esx_addonaccount for the society credit; gate the job with xPlayer.job.name.
QBCore: native here β Player.Functions.AddItem, RemoveMoney('cash', n), exports['qb-management']:AddMoney('restaurant', n).
QBox: identical to QBCore but resolve players with exports.qbx_core:GetPlayer(src) and credit via qbx_management.
Profit Potential
$90β$1200/mo on Tebex (expected ~$320). [INFERRED] priced inside the $50-389 standalone-script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo) for a saturated food-RP niche.
Trend Signal
β saturated β corpus: Food-RP restaurant scripts are a saturated top-seller category (scraper category density).
Sales Angle
In a crowded food category, lead with the mechanic competitors skip: a true order-ticket queue from pass to POS. Recommended Tebex price: $79.
Difficulty & Ship Time
intermediate Β· ships in 4-8h.