For the complete documentation index, see llms.txt. This page is also available as Markdown.

🧰Installation

Upgrading from v2? Read What's New in v3 first — several settings were renamed or moved into pl_lib.


Dependency matrix

Resource
Required?
Why

Required

Callbacks, menus, points, zones, skill checks

Required

Database access

Required

Framework (ESX/QBCore/Qbox), target, notify, textUI, clothing, society/banking bridge — see pl_lib docs

pl_restaurant_props

Required

Custom food/kiosk props — not declared in fxmanifest.lua, see below

Required if Config.Interaction = 'target'

Configured through pl_lib

ox_inventory, qb-inventory, or ESX items

Required (pick one)

Item registration

Optional

Grill/fryer sizzle + drink machine pour sound. Script works fine without it, just silently no sound.

rpemotes (or your emote resource)

Recommended

Carry/cooking animation dictionaries — see below

Optional

Only needed if Config.Interaction = 'text3d' for any zone

Optional

Gates in-world builder/editing tools, if you use it

pl_restaurantapp

Optional

Delivery/ordering companion app for lb-phone/gksphone


Step 1 — Download & place

Drop the pl_burgershot folder into your server's resources directory.


Step 2 — Install pl_lib first

pl_lib must be installed, configured, and started before pl_burgershot. Follow the pl_lib installation guide, then come back here. If pl_lib isn't running when pl_burgershot starts, framework/target/notify detection fails and the whole script silently breaks.


Step 3 — Required manual steps not enforced by fxmanifest

These aren't in pl_burgershot's dependencies {} block, so it's easy to install the script and think it's "done" while these are still missing.

1. pl_restaurant_props (required)

A separate map/prop resource that streams the custom models the config references by name — pl_rawpatty, pl_cookedpatty, pl_burnedpatty, pl_cookedfries, pl_fries, pl_burnedfries, pl_fry_basket, pl_burgerbun, pl_kiosk. Drop the pl_restaurant_props folder into resources and ensure it in server.cfg before pl_burgershot. Without it, cooked food and the kiosk prop simply won't render.

2. xsound sound files (optional, but silent otherwise)

If you run xsound, copy the 3 files from pl_burgershot/Installfolder/sounds/ into your xsound resource's own sounds folder:

File
Used by

drinkmachine.mp3

Config.DrinkMachine.PourSound

fryer.mp3

Config.Fryer.SizzleSound

grillstation.mp3

Config.Grill.SizzleSound

The Url values in shared/config.lua are relative to xsound's own html folder — keep the filenames the same, or update the Url fields to match wherever you place them.

3. Animation dictionaries in your emote resource (required for animations to work)

The custom .ycd files in pl_burgershot/Installfolder/animations/ (cup_holding, fries_eating, frybasket, kitchen_spatula, pl_fry_basket) need to be added/registered in your emote resource (e.g. rpemotes) so the game can find them. Without this step, carry and cooking animations that reference these dictionaries won't play. Follow your emote resource's own instructions for adding a custom animation dictionary.


Step 4 — server.cfg


Step 5 — Configure

Open shared/config.lua and set, at minimum:

  • Config.location — the map pack you're using (gabz, molo, gn, smalo, uniqx, king, tstudio, giant), or 'auto' to detect it from whichever resource is running (fill in Config.LocationResources first if you use auto).

  • Config.Jobname / Config.JobLabel — must match the job you create in Step 7.

  • Config.Interaction — 'target', 'textui', or 'text3d'.

  • Config.RequireDuty / Config.RequireHandWash — turn these on if you want employees to clock in / wash hands before working.

Everything else has sensible defaults — see Preview Config for the full annotated file, and Feature Guide for what each system does.


Step 6 — Database

Leave Config.AutoInstallSQL = true (the default). On first boot the script creates all 4 tables it needs — pl_burgershot, pl_burgershot_fridge, pl_burgershot_orders, pl_burgershot_shifts — and seeds the fridge with the items from Config.Shop.Storage. If you upgrade later, it also auto-migrates older table formats without touching your existing data.

Manual SQL (only if AutoInstallSQL is off or fails)

ESX only — also create the society account/job:


Step 7 — Job

QBCore — paste into qb-core/shared/jobs.lua
Qbox — same job, grade keys without quotes

ESX users: the job + grades are created automatically by the manual SQL in Step 6 (or by AutoInstallSQL).

Config.BossGrade (default 4) is the minimum grade that can use boss/ management actions — match it to whichever grade number you make "Owner"/"Manager".


Step 8 — Register items

The v3 item catalog below is intentionally smaller than v2's — it's exactly the items shared/recipe.lua uses, plus a few standalone ingredients/utility items. The script now ships its own custom props (pl_restaurant_props), so v3 no longer depends on the external DJ Collections prop pack — register just the items below.

ox_inventory — copy into ox_inventory/data/items.lua

Full file: Installfolder/items-ox_inventory.lua.

qb-inventory — copy into qb-core/shared/items.lua

Full file: Installfolder/items-qb-inventory.lua.

ESX — SQL insert

Item images

The kiosk/fridge/display NUI reads its icons straight from web/assets/items/ via Config.ImagesPath — nothing to do there. Your inventory's own UI (the item icon shown in a player's inventory slots, hotbar, etc.) is separate and reads from its own image folder, so you still need to copy the icons from pl_burgershot/Installfolder/images/ into it:

Inventory
Copy the images into

ox_inventory

ox_inventory/web/images/

qb-inventory

qb-inventory/html/images/

Installfolder/images/ contains one .png per core item (matching the item names above, including bs_receipt.png for the receipt) — drop all of them in, don't rename anything.


Step 9 — Optional: delivery app

If you want customers to order (and staff to deliver) BurgerShot food from a phone, install the companion pl_restaurantapp resource (lb-phone or gksphone builds — see its own documentation) and add an entry for "burgershot" to its Config.Restaurants, with dbTable = "pl_burgershot" matching Config.DBTable here exactly.


Common pitfalls

Food/kiosk props are invisible or wrong-looking

pl_restaurant_props isn't installed or isn't started before pl_burgershot. See Step 3.

No sizzle/pour sound

Either you don't have xsound installed (expected — it's optional and fails silently), or you have it but haven't copied the 3 files from Installfolder/sounds/ into it. See Step 3.

Carry/cooking animations don't play, or the player just stands still

The custom .ycd animation dictionaries from Installfolder/animations/ haven't been registered in your emote resource. See Step 3.

Items show up in the inventory UI with no icon/a broken image

The .png files from Installfolder/images/ haven't been copied into your inventory's own image folder yet — this is separate from the NUI icons the kiosk/fridge already load automatically. See Step 8 → Item images.

Everything silently doesn't work — no target prompts, no notifications

pl_lib isn't installed, isn't started, or is started after pl_burgershot in server.cfg. Start order matters.

Blip/props/grill appear in the wrong spot, or "Config.location" errors

Config.location doesn't match the map pack you actually have running, or (if using 'auto') the resource name in Config.LocationResources doesn't match your map pack's real resource folder name.

Last updated