Restaurants
Installation
Import one SQL file (or let the resource create its tables), add the items, create the jobs and start it after dh_bridge.
Steps
1
Copy the resource
Place the
dh_restaurants folder in your resources directory.2
Import the SQL
Import
INSTALL/dh_restaurants.sql. If you skip it, missing tables and columns are created on start and the console says so. Updating? Nothing to import — missing columns are added on start.3
Add the items
Add the items from
INSTALL/ox_inventory_items.lua to ox_inventory/data/items.lua, and the images listed in INSTALL/images.md to ox_inventory/web/images/.4
Create the jobs
Create a job for every restaurant (the default config uses
burgershot). Give the owner grade the boss flag — QB/QBX isboss = true, ESX grade name boss. Job creators that store grades in job_grades (e.g. jaksam's) are read automatically.5
Add to server.cfg
After dh_bridge.
6
Optional: Discord logs
Set the webhook as a convar so the URL never sits in a file (below).
7
Admin permission
Grant
dh_restaurants.admin for the creator, restock and owner commands. Players dh_bridge treats as admins are also allowed.server.cfg
server.cfg
ensure oxmysql
ensure ox_lib
ensure ox_inventory
ensure ox_target # optional
ensure dh_bridge
ensure dh_restaurants
set dh_restaurants_webhook "https://discord.com/api/webhooks/..." # optional
add_ace group.admin dh_restaurants.admin allow
On start, the console prints the detected framework, inventory, target and society backend, and warns about missing tables, missing items, unknown jobs and stations without coordinates. Check it first when something's off.
Inventory notes
Config.IngredientItems = 'carriers'needs ox, tgiann or jaksam. Other inventories use'real'automatically- Menu images follow your inventory with
Config.ImagePath = 'auto' - On ps-inventory and qb-inventory 1.x, items added to a stash while someone has it open are lost when they close it
Troubleshooting
"table … is missing" in console — Import the SQL, or restart once so the resource creates it.
Items show as missing — Add them from
INSTALL/ox_inventory_items.lua, or change the item names in the config to ones you have.Stations don't appear — Check the startup warnings — stations at 0,0,0 are skipped.
Dashboard says no permission — The player needs the boss grade, to own the restaurant, or to be an admin. Also check
Config.DashboardAccess.Counter says closed — Check the restaurant's active hours (server time, not in-game time) and the Restaurant enabled switch.
Can't order ingredients — With
IngredientPickup on, every restaurant needs a dropoff station.