LuckyScripts / Business ManagementFIVEM FIELD GUIDE
Framework bridge & permissions
Understand framework detection, inventory and target adapters, and access control.
The bridge auto-detects your framework at runtime and provides a unified API:
shared/bridge/
├── init.lua → Detects qbx_core / qb-core / es_extended, ox_inventory / qb-inventory, ox_target / qb-target
├── core/
│ ├── qb.lua → QBX & QB-Core server+client adapter
│ └── esx.lua → ESX server+client adapter
├── inventory/
│ ├── ox.lua → ox_inventory adapter
│ └── qb.lua → qb-inventory / ps-inventory adapter
└── target/
├── ox.lua → ox_target adapter
└── qb.lua → qb-target adapterBridge API
| Function | Side | Purpose |
|---|---|---|
Bridge.GetPlayer(source) | Server | Get normalized player object with PlayerData, Functions.AddMoney/RemoveMoney/GetMoney |
Bridge.GetPlayerData() | Client | Get local player data (citizenid, charinfo, job) |
Bridge.DoesJobExist(jobName) | Server | Check if a job exists in the framework |
Bridge.OpenBossMenu(jobName) | Client | Open the management/boss menu |
Bridge.Inventory.AddItem(...) | Server | Add item to player inventory |
Bridge.Inventory.RemoveItem(...) | Server | Remove item from player inventory |
Bridge.Inventory.GetItemCount(...) | Both | Get item count |
Bridge.Inventory.RegisterStash(...) | Server | Register a stash (tray/storage/kitchen pass) |
Bridge.Inventory.OpenStash(stashId) | Client | Open a stash UI |
Bridge.Target.AddBoxZone(data) | Client | Add a target box zone |
Bridge.Target.AddLocalEntity(entity, options) | Client | Add target to entity |
Bridge.Target.RemoveZone(zoneId) | Client | Remove target zone |
Inventory setup
The installation example uses ox_inventory. The source guide also documents a qb-inventory bridge. Confirm that alternative against your downloaded package before switching inventory systems.
Permission System
Permissions are grade-based. The Config.Permissions table maps actions to minimum required job grade levels.
| Grade | Example Role | Accessible Features |
|---|---|---|
| 0 | Employee | Cashier, Order Point |
| 1 | Chef | Kitchen, Storage, all above |
| 2+ | Manager | Menu editing, Settings, Discounts, Z Report, Receipts, Interaction points, all above |
Admin operations (creating/deleting restaurants) require the command.restaurantadmin ACE permission.
LuckyScripts Business Management · Match configuration examples to your downloaded release.
Need a hand? Read the support guide ↗