Skip to content

np_surveillance v0.1.0 ​

A law-enforcement investigations tool built on the Nimbus UI design system. Investigators open cases, keep dossiers on subjects, plant field devices, tap phone lines on a signed warrant and run the case from a live ops console. Everything a case learns is one stream of intel: the timeline, the link graph, the map and the alert stream are all built from it.

  • One intel stream. A GPS ping, a mirrored SMS, a bug pickup, a camera sighting and a typed note are all the same shape: a kind, a source, a severity, a position and a target. See Cases & intel.
  • Warrants decide what counts. With warrants required on, intel without a covering warrant is kept but marked not admissible. A judge approves, denies, amends and revokes. See Warrants.
  • Other resources plug in. np_cctv cameras and np_spy-pigeon birds register as intel sources and file what they see. np_surveillance never depends on them.

It runs on es_extended, qbx_core or qb-core, or standalone, with np_inventory, ox_inventory or qb-inventory. es_extended with np_inventory is the best-tested path. The hard dependencies are oxmysql and np_prophandler 1.1.0+ (the props of planted devices). Staff rights are np_admin permission nodes (no ACE), with job and grade roles for the investigators themselves. Every other np_* resource is optional and plugs in when it runs (Integrations). It runs with none of them present.

The ops tab: live case map, geofence, GPS trail and the alert stream

Dossier: subject profile and link graph Devices: the field kit of a case
Dossier Devices
Warrants: requests, the judge's decisions Field HUD: tail mode
Warrants Field HUD

The screenshots come from the browser mock of the web UI. The UI ships in English and German.

At a glance ​

  • Cases and members. A case has a title, a threat level, a status (open, cold, closed), a lead and members with a role of their own. Players only see the cases they are on; staff see every case.
  • Ops console. One window with a tab per module, opened with /surveillance, F7, a laptop item or a terminal. The Ops tab is a live map of members, devices, subjects, vehicles and listening posts, an alert stream, geofences, trigger rules, a 24 h replay and a push of the map to an in-world screen. See Ops console.
  • Dossiers. Subjects with a watchlist tier, aliases and notes, a profile filled from the np_* siblings, a link graph built from calls, SMS, co-location, shared vehicles and money, a pattern of life, a timeline and a printable case file. See Dossiers.
  • Field devices. GPS tracker, room bug, laser microphone, SIM cloner, USB implant, print kit and binoculars as items, each with a plant flow, a minigame and an exposure meter, plus a tail mode and counterplay (targets can find devices). See Field devices.
  • Phone lines. Warrant-gated taps on np_phone numbers (call metadata, mirrored SMS, keyword triggers, live notes), a phone scanner with a burner score and cell-tower triangulation. See Phone lines.
  • Warrants. Phone, plate, address, person and bank warrants with a reason, a duration, a judge's bench, amendments and an audit trail. See Warrants.
  • Server-authoritative. Positions come from the server's own ped. Every RPC is rate-limited and its parameters checked. The client draws and asks.
  • No ACE, no convars. Permissions are np_admin nodes plus job and grade roles. Everything tunable is in shared/config/ and, with np_admin, on its Surveillance settings page (Configuration).

Who uses it ​

Resource What it does with np_surveillance
np_cctv Announces its cameras as an intel source and files shared footage on a case as intel
np_spy-pigeon Announces its birds as a live source and files photos, plate reads, mic reports and marked suspects on the case chosen at the loft. Needs np_surveillance to run
np_phone The lines module listens to its calls and messages and mirrors them into a case under a warrant
np_identification Identity and documents in dossiers; an optional combined warrant provider
np_admin Permission nodes, the settings page Surveillance, the audit log, the server theme

All of them are optional. The full list, both ways, is on Integrations.

Quick example ​

lua
-- server: a camera, bird or dashboard script registers itself as an intel source once
exports.np_surveillance:registerSource('my_cameras', { label = 'Street cams', icon = 'video', layer = 'cameras' })

-- server: file an observation on a case (kind, source and severity 0..5; a position is optional)
local intelId, code = exports.np_surveillance:addIntel({
  caseId = 12, kind = 'sighting', severity = 2,
  source = { type = 'my_cameras', id = 'cam_17' },
  coords = vector3(293.5, 180.1, 104.3),
  target = '46EEK572',                    -- a plate: a plate warrant covers it
  payload = { note = 'grey Sultan, two occupants' },
})

-- server: react to the whole stream
exports.np_surveillance:onIntel(function(intel)
  if intel.kind == 'sighting' and intel.severity >= 3 then --[[ ... ]] end
end)

-- server: is a player allowed to touch this case?
local ok = exports.np_surveillance:canAccess(src, 12, 'investigator')

Next steps ​