Integrations & compatibility ​
np_cellnet is an addon of np_phone and needs it. Every other resource is optional. Each one has a single adapter in
integrations/ that declares the exports it uses and a fallback, and every call into it is wrapped, so a missing or
stopped resource degrades a feature instead of breaking a handler. At start the console prints one line per sibling:
active, fallback, or missing export <name>. Config.Integrations = { np_hud = false } switches a running sibling
off for np_cellnet.
Compatibility ​
| Area | Supported |
|---|---|
| Host | np_phone with host addon API 1 (required) |
| Framework | es_extended (first choice), qbx_core, qb-core, standalone |
| Inventory | np_inventory (first choice), ox_inventory, qb-inventory (and the ps / lj forks), none |
| Money | np_payments, then the framework's bank, then cash; np_banking holds the bank account |
| Weather | Renewed-Weathersync, qb-weathersync, vSync, or the weather the clients report |
| Staff | np_admin, or Config.Admins and the framework's admin groups |
np_phone (host) ​
np_phone is the addon host. np_cellnet declares np_addon 'np_phone' and dependency 'np_phone' in its
manifest and registers everything it hands to the phone inside one npAddon.attach('np_phone', fn, { api = 1 }). That
runs once np_phone is ready and again after every np_phone restart, in any start order. np_phone's owner tracking
removes all of it when np_cellnet stops, and every phone falls back to full service.
| np_phone export | What np_cellnet does with it |
|---|---|
setNetwork |
The network state of every player with a phone, pushed only on a change (np_phone → Network) |
registerStoreApp |
The CellNet app: id cellnet, default = true, network = 'none' (opens without service) |
registerAppRpc |
The app's RPCs (coverage, plans, Field Test, CellOps, records, Wi-Fi join) |
addHook('rpc') |
Tower capacity (network_busy), the emergency rule (no_signal for 911 when 911 on any carrier is off) and the Field Test dial code on calls.start / calls.accept |
addHook('rpcResult') |
Mobile data usage per successful phone action |
getSettings |
The player's Roaming switch |
getConfig |
The emergency numbers (emergencyLines) |
notify, sendAppMessage, openApp, setIsland, clearIsland |
Notifications, live app updates, the Field Test, the repair job card |
getCall, endCall |
Capacity checks; an emergency call pre-empts the newest normal call with endCall(src, 'dropped') |
np_cellnet also listens to np_phone:playerReady, np_phone:playerUnloaded, np_phone:settings:changed,
np_phone:calls:answered and np_phone:calls:ended (tower load). When np_phone stops, the signal loop pauses; when it
comes back, np_cellnet pushes every player's state again.
Other phone apps need signal too
With np_cellnet running, np_phone gates every app by what it needs, including the apps other np_* resources add (np_banking's Bank, np_passwords' Passwords, the game apps, ...). Their RPCs need light data by default, so they answer No Service in a dead zone. That is np_phone's network gate, not an error in those resources.
np_* siblings ​
| Sibling | With it | Without it |
|---|---|---|
| np_admin | Permission nodes, Resource settings → CellNet, the staff actions, the audit log (category np_cellnet), the server theme (Admin) |
Config.Admins and the framework's admin groups; no log, no actions |
| np_inventory | The six items registered at runtime (again whenever it restarts), SIM and jammer metadata, the phone item's serial as the handset id |
ox / qb bridge, or no items (below) |
| np_hud | Toasts (jammed, outages, the silent alarm), hold prompts and progress bars at cabinets. The signal itself stays in np_phone's status bar: np_hud has no generic status chip | np_cellnet's own NUI toasts, prompts and progress |
| np_surveillance | Warrants for records and triangulation (isCovered), intel on the case (addIntel), the Cell towers source (registerSource, pingSource) for fixes and sabotage alarms (Investigations) |
The job / node check decides; every request in the np_admin log |
| np_payments | Plan fees, SIM purchases and upgrades with Charge, no dialog |
The framework's bank, then cash |
| np_banking | Holds the framework bank account: fees come from it, repair pay goes into it | The framework bank |
| np_minigames | The wires repair minigame at a cabinet, run and checked on the server | The progress bar only |
| np_prophandler | Jammer and COW props, registered again when it restarts | A frozen networked object spawned by the server |
| np_menu | Not used: every interaction is a hold prompt, the staff tools are the editor and np_admin | – |
Other np_* resources ​
| Resource | Relation |
|---|---|
| np_spy-pigeon | No clash: np_spy-pigeon's signal_jammer works on birds, np_cellnet's cell_jammer on phones. Both run side by side |
| np_banking, np_passwords, np_shops, np_vending, np_metal-scanner, np_fishing, np_golf, np_darts, np_billiards, np_minigames, np_farming, np_mechanic | Their phone apps or phone features run through np_phone, so they follow the network gate |
| np_prison, np_character, np_clothing, np_tattoos, np_identification, np_fuel, np_cctv, np_gangs, np_drugs, np_environmental, np_screens, np_helicam, np_crouch-crawl-shoot, np_flightradar, np_manufacturing, np_discord, np_net, np_npchandler, MDT | No direct integration |
Frameworks ​
One framework bridge is picked at start (Config.Framework = 'auto'): es_extended, then qbx_core, then qb-core, then
standalone.
| es_extended | qbx_core / qb-core | Standalone | |
|---|---|---|---|
| Identifier | xPlayer.identifier |
citizenid |
The FiveM license |
| Jobs | Job and grade (telecom, police, Wi-Fi job hotspots) | Job, grade and duty | None: no CellOps and no job hotspots; records need np_cellnet.records |
| Money | Bank, then cash | Bank, then cash | None: plans cost nothing, repairs pay nothing |
| Staff without np_admin | ESX groups admin, superadmin |
qb groups admin, god |
Config.Admins |
Inventories ​
| Items | Use callback | Items to add by hand | |
|---|---|---|---|
| np_inventory | Registered at runtime | server.export |
none |
| ox_inventory | From data/items.lua |
server.export |
The block |
| qb-inventory (and forks) | From qb-core/shared/items.lua |
CreateUseableItem, registered by np_cellnet |
The block |
| None | – | – | – |
Without an inventory (or with Config.Sim.requireItem = false) the carrier lives on the character in
cellnet_subscribers and changes at a store; jammers and detectors are not available; sabotage needs no tool and
repairs use no parts.
Weather ​
np_cellnet reads the server's weather from Renewed-Weathersync (GlobalState.weather), qb-weathersync
(getWeatherState, or its GlobalState) or vSync (its GlobalState when present). With one of them running, that
weather is used both for storm outages and for every player's weather penalty, so a client can't report clear skies
during a storm. Without one, storm outages follow the weather most clients report and the penalty uses each player's
own report.