Installation ​
Requirements ​
- np_phone with host addon API 1 (the network provider API, see np_phone → Network). It is a declared dependency: np_cellnet does nothing without it.
- oxmysql. The tables are created at start.
- Node 18+ once, to build the web UI (
web/distis not committed).
Optional, detected at start (each with a fallback, see Integrations):
| Kind | Resources | Without it |
|---|---|---|
| Framework | es_extended (first choice), qbx_core, qb-core | Standalone: license identifiers, no jobs and no economy (plans cost nothing, repairs pay nothing) |
| Inventory | np_inventory (first choice), ox_inventory, qb-inventory (and the ps / lj forks) | The carrier lives on the character; no jammers, detectors or parts; sabotage needs no tool |
| Staff | np_admin | Config.Admins and the framework's admin groups are staff; no audit log, no staff actions |
| Weather | Renewed-Weathersync, qb-weathersync, vSync | Storm outages follow the weather most clients report; the weather penalty uses each player's own report |
| Other np_* siblings | np_hud, np_surveillance, np_payments, np_banking, np_prophandler, np_minigames | A built-in fallback each |
| Zones | np_colshape | Distance checks instead of colshapes for dead and weak zones, jammers and Wi-Fi hotspots on the server. Needed on FiveM Legacy only, GTAV Enhanced has the natives built in |
Steps ​
- Put the folder into your resources as
np_cellnet. np_phone loads the app fromnp_cellnet/web/dist/phone.html, items callnp_cellnet.useItemand other resources callexports.np_cellnet, so keep the name. - Build the web UI:shThis builds two pages into
cd resources/np_cellnet/web npm ci npm run buildweb/dist:index.html(the tower editor, the jammer detector and the fallback toasts, prompts and progress) andphone.html(the CellNet app inside np_phone). - Start order in
server.cfg. np_cellnet attaches to np_phone whenever np_phone becomes ready, also after a restart of either, so the order is not critical. Starting it after np_phone is the clean way:cfgensure oxmysql ensure es_extended # or qbx_core / qb-core ensure np_inventory # or ox_inventory / qb-inventory ensure np_admin # optional: permissions, settings, audit log ensure np_hud # optional siblings, any order ensure np_surveillance ensure np_phone # required ensure np_cellnet - Items (below): nothing to do on np_inventory; add them on ox_inventory and qb-inventory.
- Permissions: grant the nodes in np_admin (below). Without np_admin, add staff identifiers to
Config.Admins. - Check what you have to own:
Config.Sim.requireItem(Carriers & plans): with an inventory, a phone without asim_carditem has no service. Players buy one at a carrier store in the CellNet app, or staff hand one out.Config.Job.name('telecom') andConfig.Records.jobs(police,sheriff): the jobs for CellOps and records.Config.Comms.emergency.lines: keep it equal to np_phone's emergency lines (911,912).Config.Locale:'en'or'de'.
- Start the server and open the CellNet app on the phone. The tables (
cellnet_towers,cellnet_zones,cellnet_rules,cellnet_subscribers,cellnet_records) are created on the first start.sql/install.sqlholds the same statements if you prefer to run them by hand.
Every option is on Configuration. With np_admin running, the most used values can also be changed live.
Items ​
| Item | What it does |
|---|---|
sim_card |
Decides the carrier. Metadata { carrier, iccid, number? }. The phone uses the first SIM in the pockets |
cell_jammer |
Use to place it. Metadata { radius, battery } (metres, minutes) |
jammer_detector |
Use to switch the detector chip on or off (police and sheriff by default) |
fibre_kit, fuse |
Repair parts: a cut fibre needs 1 kit, a power outage 2 fuses, a storm outage 1 fuse |
bolt_cutter |
Needed for Cut fibre at a tower cabinet |
| Inventory | What to do |
|---|---|
| np_inventory | Nothing. np_cellnet registers the items at runtime, and again whenever np_inventory restarts |
| ox_inventory | Paste the block below into ox_inventory/data/items.lua |
| qb-inventory (qb-core, qbx_core, ps / lj forks) | Paste the block below into qb-core/shared/items.lua. np_cellnet registers the use callbacks itself |
| None | Nothing. The carrier is stored per character instead of on a SIM (Integrations) |
ox_inventory ​
lua
['sim_card'] = { label = 'SIM card', weight = 5, stack = false, close = true, description = 'A carrier SIM. The phone uses the first SIM in your pockets.' },
['cell_jammer'] = { label = 'Cell jammer', weight = 1500, stack = false, close = true, server = { export = 'np_cellnet.useItem' } },
['jammer_detector'] = { label = 'Jammer detector', weight = 400, stack = false, close = true, server = { export = 'np_cellnet.useItem' } },
['fibre_kit'] = { label = 'Fibre splice kit', weight = 800, stack = true, close = true },
['fuse'] = { label = 'Fuse', weight = 50, stack = true, close = true },
['bolt_cutter'] = { label = 'Bolt cutter', weight = 2500, stack = false, close = true },
server.export routes the jammer and the detector to np_cellnet. np_cellnet never lets ox consume them: placing a
jammer removes the item itself.
qb-inventory ​
lua
sim_card = { name = 'sim_card', label = 'SIM card', weight = 5, type = 'item', image = 'sim_card.png', unique = true, useable = false, shouldClose = true, description = 'A carrier SIM' },
cell_jammer = { name = 'cell_jammer', label = 'Cell jammer', weight = 1500, type = 'item', image = 'cell_jammer.png', unique = true, useable = true, shouldClose = true, description = 'Blocks every phone around it' },
jammer_detector = { name = 'jammer_detector', label = 'Jammer detector', weight = 400, type = 'item', image = 'jammer_detector.png', unique = true, useable = true, shouldClose = true, description = 'Points to the nearest jammer' },
fibre_kit = { name = 'fibre_kit', label = 'Fibre splice kit', weight = 800, type = 'item', image = 'fibre_kit.png', unique = false, useable = false, shouldClose = true, description = 'Repairs a cut fibre line' },
fuse = { name = 'fuse', label = 'Fuse', weight = 50, type = 'item', image = 'fuse.png', unique = false, useable = false, shouldClose = true, description = 'A cabinet fuse' },
bolt_cutter = { name = 'bolt_cutter', label = 'Bolt cutter', weight = 2500, type = 'item', image = 'bolt_cutter.png', unique = true, useable = false, shouldClose = true, description = 'Cuts chains, fences and fibre' },
Permissions ​
No ACE. np_cellnet checks np_admin nodes with npAdmin.can and registers them with labels:
| Node | Grants |
|---|---|
np_cellnet.admin |
The tower editor (/cellnet), dead zones, world rules, the staff actions (forced outages, restore, SIMs) |
np_cellnet.records |
Cell-site records and triangulation without a police job |
np_cellnet.jammer |
The in-world debug overlay (/cellnet overlay) |
Jobs are checked on top: the telecom job (Config.Job) for CellOps and repairs, Config.Records.jobs for records,
Config.Detector.jobs for the jammer detector. Without np_admin, identifiers in Config.Admins and the framework's
admin groups (Config.AdminGroups: ESX admin, superadmin; qb admin, god) count as staff.
Check it works ​
- Start the server. The console prints one line per sibling (
active,fallbackormissing export ...) and np_phone logsaddon np_cellnet 0.1.0 attached.cellnetin the server console prints the network status. - Give yourself a SIM: np_admin → Give SIM card, or buy a plan at a carrier store from the CellNet app's Status tab (Digital Den in Little Seoul or Mirror Park, for example).
- The status bar shows bars and a network type. Walk into the Del Perro tunnel or below the downtown streets: the bars drop to zero and texts wait in the outbox.
- Dial
*3001#12345#*: the Field Test opens with the serving tower and every score factor. - As staff,
/cellnetopens the tower editor.
Troubleshooting ​
| Symptom | Fix |
|---|---|
| Full bars, LS Mobile, nothing changes | np_cellnet is not attached. Check the start log: an np_phone without addon API 1 is refused with a warning line |
| The phone always shows SOS | No sim_card in the pockets (with Config.Sim.requireItem), or the plan is unpaid. Pay it on the Status tab or switch requireItem off |
| The CellNet app is blank | web/dist is missing: build the web UI |
| A new SIM of another carrier gives SOS | Switching carrier by inserting another carrier's SIM starts unpaid. Pay the plan in the app |
| Network Busy on calls | The serving tower has no free call slot. Raise its slots in the editor, or let a technician upgrade it |
| No sabotage prompt at a cabinet | Rules.sabotage is off, you are on duty as a technician (they get Repair instead), or you are not within 2.5 m of the cabinet. The default cabinet positions are approximate: move them in the editor if one ends up inside a wall |
| Sabotage is refused | The tower is already down or on battery, its cooldown is running, or the bolt cutter is missing (Cut fibre) |
| Records answer Warrant needed | np_surveillance runs and no active phone warrant with location scope covers the number |
| Jammers cannot be used on ox / qb | Add the item definitions above |