Skip to content

np_cellnet v0.1.0 ​

Cell towers, carriers and signal for np_phone, built on the Nimbus UI design system. np_cellnet is an addon of np_phone: it decides, per player, whether calls, texts and data work, and np_phone shows it in its status bar, Control Center and Settings → Cellular, gates its actions and queues texts until the signal comes back (np_phone → Network).

Towers are part of the world. Each has a range, a type (5G, LTE, 3G or E), call and data capacity, a cabinet you can sabotage and a battery that keeps it up for a while after the power is cut. Interiors, tunnels, storms, dead zones and jammers weaken or kill the signal. Telecom technicians keep the network running, police pull cell-site records with a warrant, and staff place and tune towers live, without a restart.

  • np_phone is required. np_cellnet attaches to it as an addon (host addon API 1) and does nothing without it. See Addons for how that works.
  • Everything else is optional and has a fallback (Integrations).
  • Server-authoritative. Positions are read on the server. The client only reports its surroundings (interior, underground, weather), and that report can only lower its own signal. When a weather script runs, its weather replaces the client's report.

It runs on es_extended, qbx_core or qb-core, or standalone, with np_inventory, ox_inventory or qb-inventory, or without an inventory. es_extended with np_inventory is the first-choice path. Permissions are np_admin nodes plus job checks (no ACE). The UI ships in English and German and follows the server theme from np_admin.

Not yet run on a live server

Everything is covered by the resource's Lua test suite (fake natives, an in-memory database, a fake np_phone host and fakes of the siblings), but it has not been played on a live server yet. Test it on a staging server first.

The CellNet app: coverage map, status, switching plan and the Field Test

CellOps for technicians, tower upgrades, cell-site records and triangulation

No service (SOS), jammed, a records request without a warrant, and the Liquid Glass look

The tower editor: towers, ranges, dead zones and the world rules

In the world: the jammer detector chip, outage and jammed toasts, the hold prompt and progress at a cabinet

The screenshots come from the browser mock of the web UI.

What lives where ​

np_cellnet (this resource) np_phone
Towers, dead and weak zones, Wi-Fi hotspots, jammers The status bar, Control Center and Settings → Cellular that show the signal
The signal of every player (bars, type, SOS, roaming, Wi-Fi) What each phone action needs, the error texts, the outbox for texts
Carriers, SIM cards, plans, data usage, billing Call quality, voice drop-outs and dropped calls
Tower capacity (network_busy) and the emergency rules The emergency lines themselves (911 / 912)
The CellNet app, the tower editor, CellOps and cell-site records The App Store the CellNet app is registered in

np_phone has no towers of its own: without np_cellnet (or another network provider) every phone has full service.

At a glance ​

  • Signal model: about 35 default towers across Los Santos, Blaine County, Paleto Bay, Mount Chiliad and Cayo Perico, plus the ones staff place. Every 2 seconds the server scores the nearby towers of each player's carrier and pushes bars, type, dBm, the serving tower and its load to np_phone, only when something changed. See Signal.
  • Three carriers (Badger, Whiz, Tinkle) with their own towers, shared towers, partner roaming and Cayo Perico roaming. A sim_card item decides the carrier. Weekly plans with a data allowance, autopay, SOS while unpaid and throttling to 3G above the allowance. See Carriers & plans.
  • Capacity and failover: a dead tower hands its phones to the next one, which fills up. A full tower answers Network Busy. 911 and 912 always pass and, far beyond capacity, end the newest normal call on that tower.
  • The world: Wi-Fi hotspots (data without plan usage, Wi-Fi Calling), placeable jammers that block everything around them, storms that knock out rural towers, and sabotage at tower cabinets. See World.
  • Telecom technicians: CellOps in the CellNet app with alerts, repair jobs, paid repairs with parts and a minigame, mobile masts (COWs) and tower upgrades. See Technicians.
  • Investigations: every cell change is logged. Police request records for a number and time window and triangulate a phone live; with np_surveillance both need a warrant and go to the case. See Investigations.
  • Staff tools: the tower editor (/cellnet), np_admin permissions, settings, staff actions and the audit log. See Admin.

The CellNet app ​

np_cellnet registers the CellNet app with np_phone's App Store. It is installed on every phone and opens without service, so the coverage map and the Field Test work anywhere.

Tab Who Shows
Coverage everyone Map of a carrier's towers (strong, busy, outage), dead zones and Wi-Fi; Best signal sets a waypoint to the strongest spot nearby
Status everyone Bars, type, score, tower, dBm and tower load; outages of your carrier; your plan, Switch plan and Pay
CellOps the telecom job Alerts, repair jobs, mobile masts, tower upgrades (Technicians)
Records police and np_cellnet.records Cell-site records and triangulation (Investigations)

The Field Test (dial *3001#12345#*, or long-press the version) lists the serving cell, its neighbours with score, dBm and distance, and every factor that lowers the score.

Coverage Best signal nearby Field Test
Coverage map Best signal Field Test

Who uses it ​

Resource What it does with np_cellnet
np_phone Required. The host: shows the signal, gates actions, queues texts, carries the CellNet app
np_admin Permission nodes, the settings page CellNet, staff actions, the audit log, the server theme
np_inventory Registers the six items at runtime; SIM and jammer metadata; the phone's serial is the handset id
np_hud Toasts, hold prompts and progress bars at tower cabinets
np_surveillance Warrants for records and triangulation, intel on the case, the "Cell towers" source
np_payments / np_banking Plan fees, SIMs and upgrades; repair pay lands in the bank account
np_minigames The repair minigame at a cabinet
np_prophandler Jammer and mobile mast props

Only np_phone is needed. The full list, with every fallback, is on Integrations.

Quick example ​

lua
-- server: what does this player's phone see right now?
local s = exports.np_cellnet:getSignal(src)
if s and s.bars >= 2 then
  print(s.carrier, s.type, s.tower and s.tower.id, s.score)
end

-- server: take a tower down for 10 minutes, e.g. from a power plant heist
exports.np_cellnet:setTowerOnline('BC-04', false, 'power', 600)

-- server: react to towers going down or coming back
AddEventHandler('np_cellnet:towerStatus', function(towerId, online, reason)
  print(towerId, online and 'up' or ('down: ' .. tostring(reason)))
end)

See Exports & events.

Next steps ​