Installation
Requirements
| hz_cook | required — the framework |
| hz_cook_bbq | the barbecue content pack |
| ox_lib | required |
| a target system | hz_lib, ox_target, qb-target or hz_textui — the first that answers is picked |
| an inventory | ox_inventory, qb-inventory or qs-inventory |
| a framework | QBox, QBCore, ESX, or Standalone |
hz_cook/shared/config.lua can force any of it.
1. Both resources in your server
ensure hz_cook
ensure hz_cook_bbq
The order does not matter. The pack registers itself as soon as the framework is up, and again after any restart hz_cook.
2. The items
From the pack's [items]/ folder, into your inventory:
| Your inventory | File | Where |
|---|---|---|
| ox_inventory | ox_inventory.txt | ox_inventory/data/items.lua |
| qb-inventory | qb-inventory.txt | qb-core/shared/items.lua |
| qs-inventory | qs-inventory.txt | qs-inventory/shared/items.lua |
| database | items.sql | run it |
The items are not declared automatically.
[items] is data to copy into your own inventory resource — the pack cannot write to it for you.3. The images
Copy [items]/img/*.png into your inventory's image folder — not into the resource.
4. Check it
Give yourself a bbq, bbq1, bbq4 or campfire item and use it. On QBCore the items are made useable automatically, so there is no CreateUseableItem to write.
The server console should show:
[hz_cook_bbq] 4 station(s), N recipe(s) registered
If it says nothing registered, hz_cook did not start.
The items
| Item | What it is |
|---|---|
bbq, bbq1, bbq4, campfire | the four stations |
charcoal_bag | charcoal for the kettle, carries its own level |
lighter | needed to light a station by hand |
raw_steak | the meat, cooked on any grill |
burger_bun_bottom, burger_bun_top, cheese_slice, lettuce, tomato_slice, onion_slice, bacon | burger layers |
skewer_stick | the empty skewer |
skewer_beef, skewer_chicken, skewer_fish, skewer_mushroom, skewer_onion, skewer_pepper_green, skewer_pepper_red, skewer_tomato, skewer_zucchini | skewer pieces |
burger, skewer | the finished food |
