Chrome Pig BBQ: install
Needs:
- a target system: ox_target or qb-target
- one of qbx_core, qb-core or es_extended
No ox_lib required: the UI, progress bars and notifications are all built in.
1. Add the 8 menu items to your inventory:
| Inventory | What to do |
|---|---|
| ox_inventory (QBox / most ESX) | Paste ox_inventory_items.lua into ox_inventory/data/items.lua. If you pasted an older version (items with anim = / prop = lines), replace those 8 entries: the anims now come from chromepig |
| qb-inventory | Paste qb_items.lua into qb-core/shared/items.lua |
| ESX without ox_inventory | Run esx_items.sql |
Item icons: copy install/images/*.png into your inventory's image folder (ox_inventory/web/images/ or qb-inventory/html/images/).
Food props: the custom plates, sandwiches, corn, mac cup and mason-jar drinks stream with the resource, so there's nothing to install. Each item's hand offset is in Config.Consumables if one sits off in your hand. Plates, the hot-link boat and the mac cup are held in the left hand while the right hand eats a bite off them; drinks are held upright and sipped through the straw (needs game build 2189+ for the Cayo Perico anim; older builds fall back to the burger anim without the tray). With Config.Debug on, /pigeat rib_plate loops the anim and /pigtune hold|bite x y z rx ry rz moves the tray or the bite live and prints the line to paste.
2. Load order: put ensure chromepig after your framework, inventory and target.
3. Settings: everything is in config.lua. Set Config.Debug = false for a live server. Debug mode enables /pigspawn, /pigdebug, /pigprops, /pigeat and /pigtune.
How it plays
- Park the truck, get in the kitchen (sit up front, then press G) and use the Register to open the stand piece by piece: the serving window, the back smoker, the back doors, and the table & sign. Open everything and Pack it all up do it in one click. The kitchen itself works any time the truck is parked.
- Every station has its own target and its own panel:
| Station | What it does |
|---|---|
| Back smoker / Barrel smoker | Load a meat, pull it when it's done |
| Griddle | Hot links, grilled corn, mac & cheese |
| Drink machine | Sweet tea and lemonade |
| Warmer | The stock customers buy from, plus bagging food to go |
| Supplies fridge | Buy raw meat, sides, drink batches and wood chips into the truck's pantry. Nothing cooks without them |
| Register | Opens / packs up the stand, opens the window for business, sets your menu prices, shows the customer line |
| Cab doorway | Sit up front without walking around; press G in the seat to step back into the kitchen |
- Smokers: pick a meat and hit Smoke. The lid swings open and the raw meat is on the grate (one cut + one bag of wood chips from the pantry); the cook reaches in with the BBQ tongs, takes the meat by its edge, sets it square on its spot and the lid closes. It cooks on its own timer with smoke rolling out the stack. When it's done, Pull it opens the lid, the cook grips the cooked meat with the tongs and lifts it out, and it goes into the warmer.
- Griddle and drinks: one click while you stand at the station. The food sits on the griddle while it cooks and the cook works it with the tongs. At the drink machine the cook stands an empty mason jar on the drip tray under the tea or lemonade tap, pulls the tap, and the jar fills before he takes it. The cooking anims (
stream/cp_cook.ycd) are made for the spots inConfig.Standand the props inConfig.Tools, with their timings inConfig.CookAnims. - Every cook makes 2 portions. - The warmer holds 10 of each item. Every portion shows up as real food in its pan. Cooking that wouldn't fit is blocked, and a smoker keeps whatever doesn't fit until there's room. - Selling:
- Players: they order from the chalkboard menu at the window. They get the food in their inventory and you get paid.
- NPCs: they only come when there's something in the warmer. Their order shows over their head. Target them to serve, and you get paid plus a tip. They take the food, carry it to a spot beside the truck, eat or drink all of it, and then walk off (
Config.NPC.eatSpots/eatRounds). - The truck's pantry and warmer are saved per plate, so stock survives garage trips and restarts.