Compatibility ​
np_drugs picks one framework bridge and one inventory bridge at start (Config.Framework, Config.Inventory,
'auto' = the first that runs: es_extended > qbx_core > qb-core; np_inventory > ox_inventory > qb-inventory).
es_extended with np_inventory is the first target and the best-tested path. Other np_* resources are covered on
Integrations.
Framework × inventory ​
| np_inventory | ox_inventory | qb-inventory | ESX inventory | no inventory | |
|---|---|---|---|---|---|
| es_extended | everything | everything | – | no metadata (below) | – |
| qbx_core | everything | everything | no trunks | – | – |
| qb-core | everything | everything | no trunks | – | – |
| standalone | everything but money (dirty cash only as an item) | the same | – | – | body, effects, tests, rehab, dispatch |
Each combination boots in the test suite and runs the same smoke test (tests/test_boot_*.lua, tests/smoke.lua):
every module loads, every RPC and timed action answers junk without an internal error, features without metadata say
not_available, an hour of ticks and a restart.
What each inventory can do ​
| Metadata | Runtime items | Stashes / trunks by id | Use callback | Moves between inventories | |
|---|---|---|---|---|---|
| np_inventory | yes | yes (RegisterItem) |
yes | server.export, item actions |
beforeMove + onDrop hooks (read only) |
| ox_inventory | yes | no (npdrugs_items ox) |
yes | server.export, hooks |
swapItems hook (read only) |
| qb-inventory | yes (info) |
no (npdrugs_items qb) |
pockets only | CreateUseableItem |
not seen |
| ESX inventory | no | no | no | RegisterUsableItem |
not seen |
No item metadata (ESX inventory) ​
Drug items are plain stacks of grade Config.Sale.unbatchedGrade (C), one item is one dose, and the batch table,
concealment, trunk wear, evidence records and product batches answer not_available. Selling, using, the body, tests,
EMS, rehab, trash and the street sale work.
qb-inventory ​
Only pockets are addressable, so trunk wear and K9 trunk sniffs have nothing to read, and a drag between inventories
is not reported. Items are pasted once (npdrugs_items qb).
ox_inventory ​
Items are pasted once (npdrugs_items ox); moves are read from its swapItems hook.
Frameworks ​
| es_extended | qbx_core / qb-core | standalone | |
|---|---|---|---|
| Character identifier | xPlayer.identifier |
citizenid |
np_character id, else the FiveM license |
| Jobs and duty | Framework job | Framework job and duty | Config.StandaloneJobs |
| Dirty cash | black_money account |
black_money item |
black_money item |
| Status (hunger, thirst, stress) | esx_status | Player metadata | Internal event np_drugs:server:status |
| Staff without np_admin | getGroup() in Config.AdminGroups |
HasPermission |
Config.Admins, np_discord roles |
With np_admin running, its permission nodes decide on every framework.
OneSync ​
Needed for the street sale (the server checks the ped), K9 sniffs of vehicle trunks, the car-hood surface of the
concealment bench, garbage trucks near a sanitation stop and the crash check of trunk wear. Without it those answer
not_available or skip the check.
Other resources ​
| Resource | How it fits |
|---|---|
| ps-dispatch, cd_dispatch, qs-dispatch, core_dispatch | Witness reports in their call lists (Config.Dispatch.adapter = 'auto'). Without them: a toast and a blip for police on duty |
| Your own dispatch | Config.Dispatch.adapter = 'event' and listen to np_drugs:server:witness |
| Housing and garages | Config.Production.sites.custom decides where labs may stand |
| Voice resources | A slurring character is muffled with a mumble submix; a voice resource that would rather do it listens to the client event np_drugs:voiceFilter |
| Death / ambulance scripts | Config.Overdose.critical = 'kill' hands a critical overdose to the framework's death and revive flow; np_drugs sets the state bag isDowned while down |
| Weather syncs | Trunk heat reads GlobalState.weather (most weather syncs set it); Config.Carry.heat.hot overrides |