Compatibility ​
np_gangs picks one framework bridge and one inventory bridge at start (Config.Framework, Config.Inventory,
'auto' = the first that runs; the load order prefers esx > qbx > qb > standalone). es_extended with np_inventory
is the first target. Other np_* resources are covered on Integrations.
Framework × inventory ​
| np_inventory | ox_inventory | qb-inventory | none | |
|---|---|---|---|---|
| es_extended | everything (first target) | everything | – | virtual bandana, no back room, no robbing of items, no store |
| qbx_core | everything | everything | – | as above |
| qb-core | – | – | no back-room open hook (only np_gangs opens it), no members' store, no pickup crate, dirty cash is cash | as above |
| standalone | no economy: prices skipped, protection waits on the gang's tab | same | – | no economy, no back room |
Tested in the harness: es_extended + np_inventory, qbx_core + ox_inventory, qb-core + qb-inventory, standalone without
an inventory (tests/bridge_smoke.lua drives every module on each). The game-side parts are on
Before you open it.
Frameworks ​
| es_extended | qbx_core / qb-core | standalone | |
|---|---|---|---|
| Member identifier | xPlayer.identifier |
citizenid |
license:… |
| Staff without np_admin | xPlayer.getGroup() in Config.AdminGroups.esx |
HasPermission with Config.AdminGroups.qb |
Config.Admins, np_discord roles |
| Dirty cash | black_money item, else the black_money account |
black_money item (np / ox), else cash |
none |
| Blocked jobs (Lester) | Framework job | Framework job | – |
| Economy | ✓ | ✓ | none: every price is skipped |
With np_admin running its permission nodes decide on every framework. Without it, Config.Admins and np_discord roles work on every framework. Gangs are not framework jobs or gangs: membership
lives in gang_members, so a member keeps their job and the job slot stays free.
Inventories ​
| bandana | back room | open guard | dirty cash | |
|---|---|---|---|---|
np (np_inventory) |
item, registered at runtime | RegisterStash, bare stash id |
beforeOpen hook |
black_money item |
ox (ox_inventory) |
item (add to data/items.lua) |
RegisterStash |
openInventory hook |
black_money item |
qb (qb-inventory v2) |
item (add to shared/items.lua), metadata = info |
CreateInventory |
none: only np_gangs opens it | cash |
none |
virtual: a member always carries their own | none (GetStashInventory = nil) |
– | framework account, else cash |
What depends on the inventory:
| Feature | np_inventory | ox_inventory | qb-inventory | none |
|---|---|---|---|---|
| Bandana as an item (drop, rob, take off a downed player) | ✓ | ✓ | ✓ | virtual |
| Back room, guarded by the open hook | ✓ | ✓ | opened only by np_gangs | – |
| Members' price in protected shops | ✓ | ✓ | – (✓ with np_shops) | – (✓ with np_shops) |
| Robbing opens the victim's pockets | ✓ (see below) | ✓ | server-side | share of cash only |
| Pickup crate when dissolving | ✓ | ✓ | into the OG's pockets | – |
np_inventory and the robbery toast ​
Robbing in inventory mode opens the pockets through np_inventory, whose own toast tells the victim the robber's name.
np_gangs' own toast names only the colour. The workaround (switch the toast off in np_inventory, or rob in share
mode) is on Configuration → Robbing and np_inventory's toast.
Other resources ​
| Resource | How it fits |
|---|---|
| Shop robbery scripts | np_shops reports every robbery itself. np_gangs also listens to np_shops:server:robbed, esx_holdup:robberyStarted and qb-storerobbery:server:takeMoney (Config.Protection.robbery.events). Other scripts call ReportShopRobbery |
| Dispatch | Config.Rob.dispatch and the witness event |
| ox_target / qb-target | Without np_menu, np_gangs' player options go to ox_target or qb-target |
| Death / ambulance scripts | Their state bags tell np_gangs who is downed (Config.Rob.downedStates, Config.Trial.downStates) |
| Playtime | Config.Lester.eligibility.playtime returns your own hours |