Restaurant Business
A full farm-to-table restaurant business — drive supply runs, cook at 8 stations, serve NPC customers and real players at the POS, and manage it all from an owner CEO dashboard with hiring, pricing and reputation.
A full restaurant business for Qbox — source → prepare → sell, with a branded CEO dashboard, real-player employees, multi-station cooking, NPC + POS sales, and a drive-to-farm supply run. Built to use the TILP food/farming icon pack to the fullest.
What it does
| Loop | How |
|---|---|
| Source | Drive a box truck to the farm, buy crates (produce/meat/dairy), haul back, unload into shared storage. OR order supplies instantly from the dashboard (pricier). |
| Prepare | 8 cooking stations (Grill, Pizza Oven, Taco Line, Sushi Bar, Prep, Fryer, Drinks, Dessert). Each opens a worker panel of recipes; cooking consumes ingredients → produces dishes. |
| Sell | NPC customers walk up with random orders (serve via ox_target), and a POS register to ring up real players. Both credit the company vault and build reputation. |
| Manage | Owner-only dashboard: vault/finances, menu pricing, stock, hiring/firing/bonuses, reputation, open/close, rename. |
Dependencies
ox_lib, oxmysql, qbx_core, ox_inventory, ox_target — all already on this server. Loads automatically via ensure [custom].
First-run setup
- Restart the server (or
ensure rr-restaurant). DB tables auto-create; the menu seeds itself. - Walk to the management desk (default: Legion Square Burger Shot) and open it — the first player to open it becomes the CEO/owner.
- Hire staff: stand next to a player → Employees tab → Hire Nearby Player.
- Stock up: Stock tab → Order Supplies (instant) or Start Farm Run (drive).
- Cook at a station, then sell at the register or to NPC customers.
Installing your MLO (when it lands)
Every location is config-driven and currently defaults around the Legion Square Burger Shot so you can test immediately. To relocate:
- Stand on each spot in-game and run
/restocoords— it copiesvec3(...) headingto your clipboard and prints it. - Paste into
config.lua→Config.Locations(desk, storage, register, dock),Config.Stations,Config.Customers.queue, andConfig.Farm. /restoreload(or restart) to apply.
Commands
/restocoords— copy your current coords+heading (setup helper)./restoreload— refresh cached restaurant state on the client.
Items & icons
New items (rr_* ingredients, rr_crate_*, rr_* dishes) are defined in a clearly-marked block at the top of [ox]/ox_inventory/data/items.lua. Their icons were copied from the TILP pack into [ox]/ox_inventory/web/images/.
⚠️ If ox_inventory is ever updated/overwritten, re-apply the
rr-restaurantitems block (and the icons are already in web/images unless that folder is wiped).
The restaurant job lives in [qbx]/qbx_core/shared/jobs.lua (grades Trainee → Cook → Chef → Kitchen Manager → Owner).
Economy (all in config.lua)
- Vault = company funds. Fed by sales; drained by supplies, rent/utilities, CEO pay, bonuses.
- Economic cycle (
Config.Cycle.lengthMins, default 60) auto-bills rent/utilities/insurance. Set to1to test fast. - Pricing is CEO-editable per dish (Menu tab) and persists in
restaurant_menu. - Reputation drives NPC footfall — serve fast, keep customers happy.
Notes
- NPC customers are local to each on-duty employee near the restaurant (no networked-ped duplication); orders + payouts are server-validated.
- The farm truck uses
qbx_vehiclekeysfor keys (best-effort); adjust if you run a different keys resource. - Dashboard UI = the house "Billing Manager" style; worker panel = the bikerental style. Both carry your logo.
