Investigations ​
Every phone leaves a trail on the network. Police request cell-site records for a number and triangulate a phone live from the towers that hear it. With np_surveillance both need a warrant and the results go to the case.
| Records | Triangulation |
|---|---|
![]() |
![]() |
Who may ask ​
The Records tab of the CellNet app is open to:
- the jobs in
Config.Records.jobsfrom their minimum grade (policeandsherifffrom grade 0), on duty (Config.Records.onduty); - holders of the np_admin node
np_cellnet.records, with or without a job.
Everyone else gets forbidden. Every request that is answered is written to the np_admin audit log with the number, the officer and the case.
What is logged ​
np_cellnet writes a record whenever a phone's cell changes:
| Event | When |
|---|---|
attach |
The phone moved to a tower (including the first one after login) |
lost |
The phone lost service: dead zone, jammer, no tower |
off |
No phone item, no SIM, or the player logged out |
sim |
Another SIM in the same handset |
Each row has the number, the character, the handset id, the tower and the position rounded to a 50 m grid
(Config.Records.grid). Inserts are batched every 10 seconds; rows older than 14 days (Config.Records.days,
editable in np_admin) are purged.
The handset id is the serial in the phone item's metadata (np_inventory). Without one, it is a hash of the character
identifier.
Cell-site records ​
Enter a number and a window (1 h, 6 h, 24 h or 7 d), optionally an np_surveillance case, and tap Records. The answer lists every row with time, tower and event, draws the trail on the map, and adds:
- the handset (and every handset the number used in the window);
- the linked numbers: other numbers seen in the same handset within the last 30 days (
linkWindow).
Without a window the last 24 hours are returned; a window is never longer than 7 days (maxWindow) and returns at most
500 rows (maxRows).
SIM swaps ​
Swapping the SIM changes the number, not the handset. A SIM with its own number in the metadata is logged under that
number (Config.Sim.numberFromSim), and the handset links the old number to the new one in linked numbers. np_phone
itself keeps one number per character, so calls and texts still use np_phone's number.
Triangulation ​
Triangulate locates a phone right now. It needs the number to be online with a phone and a SIM.
- np_cellnet takes the towers that hear the phone: up, any carrier, the nearest first, at most 3
(
Config.Triangulate.maxTowers). - Each tower gives a ring around it with the phone's distance, off by up to 12 % (
noise). - The fix is where the rings meet. Its error radius is at least 450 m with one tower, 180 m with two and 70 m with
three (
baseError).
The map shows the rings and the estimated location with its error. Errors: offline (no player has that number), phone off (no phone or no SIM), no towers (no tower hears it, or the phone is jammed).
With np_surveillance ​
When np_surveillance runs:
- A warrant is required. Before records or a fix, np_cellnet asks np_surveillance whether an active warrant covers the
number (
isCovered('location', number): a phone warrant with location scope,Config.Records.warrantKind). Without one the app answers Warrant needed. Warrants are issued in np_surveillance (Warrants). - Results go to the case. With a case id, a records request is filed as intel (kind
location) with the number, the window, the handset, the linked numbers and the first 60 rows. - "Cell towers" is a live source on np_surveillance's ops map (
cellnet, icontower-cell). Every fix is a ping of that source at the estimated location; with a case id it becomes an intel entry on that case. Sabotage alarms ping the same source (World → Silent alarm).
The source is registered again whenever np_surveillance restarts.
Without np_surveillance there is no warrant system: the job or node check decides, and the audit log keeps every request.
From other resources ​
Trusted server code reads the same data without the warrant check:
local r = exports.np_cellnet:getCellRecords('555-0142', os.time() - 86400, os.time())
for _, row in ipairs(r.rows) do print(row.ts, row.tower, row.event) end
local fix, err = exports.np_cellnet:triangulate('555-0142')
if fix then print(fix.fix.x, fix.fix.y, fix.fix.error) end
See Exports & events.

