Bridges ​
np_prison talks to the framework and the inventory through bridges in bridge/, and to every optional resource through
one file per resource in integrations/ (see Integrations). np_npchandler and np_prophandler are
required and called directly. Config.Framework and
Config.Inventory force a bridge; 'auto' takes the first one that runs, once at start. Every call is wrapped, so a
missing export degrades a feature instead of breaking a handler.
Framework ​
| Bridge | Resource | Character | Jobs and duty | Admins |
|---|---|---|---|---|
esx |
es_extended | xPlayer.identifier |
job and grade | getGroup() in Config.AdminGroups |
qbx |
qbx_core | citizenid |
job, grade, on duty | HasPermission |
qb |
qb-core | citizenid |
job, grade, on duty | HasPermission |
standalone |
none | the license: identifier, or Player(src).state.npPrisonCharacter |
Config.StandaloneJobs |
Config.Admins, Discord roles |
Auto-detection order: es_extended → qbx_core → qb-core → standalone.
What a bridge provides on the server: identifier and name, the job { name, label, grade, gradeLabel, onduty }, cash
and bank, admin groups, players by identifier, the downed state, needs (hunger, thirst, stress: esx_status, qb
metadata) and, on qb and qbx, the injail metadata. On the client: loaded, dead and cuffed state. A screen closes when
the player dies or unloads, but not when cuffed: a suspect answers the charge sheet in cuffs.
Standalone has no economy: cash is not moved to the inmate account at booking, nothing is paid out at release, and fines are recorded as owed. The inmate account itself still works (jobs pay into it, the commissary takes from it).
Inventory ​
| Bridge | Resource | Items | Metadata | Property bag | Stashes |
|---|---|---|---|---|---|
np |
np_inventory | Registered at start | yes | ConfiscateInventory / ReturnInventory |
yes |
ox |
ox_inventory | Add them to data/items.lua |
yes | ConfiscateInventory / ReturnInventory |
yes |
qb |
qb-inventory | Add them to qb-core/shared/items.lua |
yes (info) |
a list | no |
esx |
the ESX inventory | sql/items.sql |
no | a list | no |
none |
– | no items | – | empty | – |
Auto-detection order: np_inventory → ox_inventory → qb-inventory → ESX. Without metadata, the burner's number and the hollow book are kept per character. The item definitions are in Installation → Items.
Other jail scripts ​
np_prison answers the events and metadata other jail scripts use, so menus, radials and MDTs written for them keep
working (Config.Compat):
| Script | What np_prison answers |
|---|---|
pickle_prisons (pickle = true) |
pickle_prisons:jailPlayer, pickle_prisons:unjailPlayer (server), pickle_prisons:jailDialog (client). A facility may be given as Pickle's 1-based prison index |
esx_jail (esxJail = true) |
esx_jail:sendToJail |
qb-core / qbx_core (qb = true) |
The injail metadata (months left) and criminalrecord.hasRecord |
The exports JailPlayer and UnjailPlayer follow Pickle's signatures (UnjailPlayer(who, true) = a breakout). Every
compatibility event is permission checked like /jail and /unjail. Remove the original script, so both do not
answer.
Dispatch, voice and doors ​
| Kind | Resources | Fallback |
|---|---|---|
| Dispatch | cd_dispatch, ps-dispatch, qs-dispatch, core_dispatch, the MDT (every active one is told) | The server event np_prison:dispatch always fires; toasts for police and guards when nobody else was told |
| Voice | pma-voice (setPlayerCall), SaltyChat, yaca-voice |
Proximity voice across the glass |
| Doors | np_doors (first), ox_doorlock, qb-doorlock | np_prophandler doors np_prison:cell:<facility>:<n> (door model and coordinates in Config.Routine.doors) |
| Target | ox_target, qb-target, np_menu (only while no target resource runs) | Key prompts with the Nimbus prompt |