luckyscripts.DOCUMENTATION
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 adapter

Bridge API

FunctionSidePurpose
Bridge.GetPlayer(source)ServerGet normalized player object with PlayerData, Functions.AddMoney/RemoveMoney/GetMoney
Bridge.GetPlayerData()ClientGet local player data (citizenid, charinfo, job)
Bridge.DoesJobExist(jobName)ServerCheck if a job exists in the framework
Bridge.OpenBossMenu(jobName)ClientOpen the management/boss menu
Bridge.Inventory.AddItem(...)ServerAdd item to player inventory
Bridge.Inventory.RemoveItem(...)ServerRemove item from player inventory
Bridge.Inventory.GetItemCount(...)BothGet item count
Bridge.Inventory.RegisterStash(...)ServerRegister a stash (tray/storage/kitchen pass)
Bridge.Inventory.OpenStash(stashId)ClientOpen a stash UI
Bridge.Target.AddBoxZone(data)ClientAdd a target box zone
Bridge.Target.AddLocalEntity(entity, options)ClientAdd target to entity
Bridge.Target.RemoveZone(zoneId)ClientRemove 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.

GradeExample RoleAccessible Features
0EmployeeCashier, Order Point
1ChefKitchen, Storage, all above
2+ManagerMenu 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 ↗

On this page