All products

np_surveillance

The investigations backbone for your police, sheriff and FIB jobs. Investigators open cases, keep dossiers on subjects, plant field devices, tap phone lines on a judge's warrant and run the case from a live ops console. Everything a case learns is one stream of intel, and np_cctv and np_spy-pigeon plug into it.

v0.1.0ESX · qbx · qb · standaloneRequires oxmysqlRequires np_prophandler 1.1.0+Base for np_cctv and np_spy-pigeon
Price TBAStore link follows at release
Installation guideDocumentation
Version
0.1.0
Frameworks
ESX first, qbx, qb, standalone
Dependencies
oxmysql, np_prophandler 1.1.0+
Database
Tables created on start
Inventory
np_inventory first, then ox_inventory, qb-inventory or none
Permissions
Job and grade roles plus np_admin nodes. No ACE
Addons
np_cctv (cameras) and np_spy-pigeon (birds) build on its public API
Optional
np_phone, np_hud, np_admin, np_identification, np_banking, np_gangs, np_prison, np_screens, np_helicam, np_mdt and more
Languages
English, German
Build
NUI ships prebuilt in releases, Node to build it from source
The Ops tab of the investigations console for Operation Kingfisher: a threat level, three active warrants, 214 intel entries of which 188 admissible, a live map with a GPS tracker, a room bug, agents, a vehicle and a dashed geofence, and the alert stream filtered to severity 2 and up
The Ops tab of the investigations console for Operation Kingfisher: a threat level, three active warrants, 214 intel entries of which 188 admissible, a live map with a GPS tracker, a room bug, agents, a vehicle and a dashed geofence, and the alert stream filtered to severity 2 and up

Taken from the NUI in the browser at 1920×1080 with mock data. The scene behind the console is a placeholder, not a GTA screenshot.

What's in it

One case, one stream of intel. The map, the alerts, the link graph and the timeline are all built from it, and a warrant decides what is admissible.

Cases and intel

  • Cases with members, a threat level and per-case roles on top of the job roles investigator, lead and judge.
  • Every observation is an intel entry: note, sighting, location, document, ping, call, SMS, bank, link or alert, plus the kinds the modules add. A severity from 0 to 5 drives the alert stream.
  • Each entry is marked admissible or not against the warrants of the case.

Ops console

  • A live map of the case: members (only shown to members, off duty hidden), device pings with trails, the last known position of subjects and listening posts.
  • Geofences that turn enter and leave into intel, and an alert stream you filter by severity.
  • Trigger rules: if a kind, subject, device, keyword or geofence matches, notify the members, page one member, flag or raise the severity. A 24 hour replay, and Cast map to an np_screens board.

Dossiers

  • Subjects with a watchlist tier, aliases and notes. The profile fills itself from what is running: identity, job, vehicles and plates, phone numbers, gang, tattoo marks, documents, known locations.
  • A link graph from calls, SMS, co-location, shared vehicles and money, a pattern of life grid, a timeline and manual links.
  • A case file export to a screen, a printable item or a Discord log.

Field devices

  • Seven items with serials: GPS tracker, room bug, laser mic, SIM cloner, USB implant, print kit and binoculars. A laptop item opens the console.
  • Planting is a small minigame with an exposure meter. A failed plant drops the item, and a loud one gives the target a hint.
  • Tail mode keeps a sweet spot to a marked subject, and counterplay lets anyone search a vehicle or area for devices.

Phone taps

  • Lines: tap an np_phone number on a warrant. Live-listen to a call (pma-voice), keep a call log and an SMS mirror, and get keyword triggers.
  • Type timestamped live notes while you listen. The tap is cut when the warrant expires.
  • A phone scanner lists numbers in range with a burner score, and cell towers give an approximate location with an error radius.

Warrants

  • An investigator requests a warrant for a phone, plate, address or area, person or bank records. A judge approves, denies or amends it with a duration and a reason.
  • Warrants expire and can be revoked. Turn Warrants required on and intel without cover is marked not admissible.
  • A judge bench, a staff view of every case and an audit log.

Staff (np_admin)

  • Rights nodes, a Resource settings page with every tunable per module, and an audit log in np_admin. No ACE.
  • Without np_admin, staff are the framework's admin groups, a list of identifiers or np_discord roles.
  • The console follows the server theme.

The investigations stack

  • np_cctv turns in-world cameras into intel sources on the ops map, and shared footage into intel.
  • np_spy-pigeon is the meme addon: a bird with a camera, a plate reader and a mic that files what it sees as intel.
  • Both use the public API: exports, hooks and server events. np_surveillance never depends on them.

A closer look

The ops console

/surveillance, the F7 key, a surv_laptop item or an ops terminal opens it. You see the cases you are a member of.

The Ops tab with the case header (threat level, warrants, intel counts), the map and the alert stream with a geofence entry, an SMS, a rule hit, a bank movement marked not admissible and a sighting
  • The map: members, device pings, subjects, vehicles you marked as case assets, geofences and listening posts. Positions are read on the server and sent only to members of the case.
  • Alert stream: intel by severity, live, filtered from 1 up to 5. A high-severity alert can go to np_mdt and a Discord log.
  • Geofences: a polygon per fence, several per case. Entering or leaving one is intel.
  • Rules: if an intel kind, subject, device, keyword or geofence matches, notify the members, page one member with a flashing blip, flag it or raise its severity.
  • Replay 24 h of pings, locations and sightings, and Cast map to push the map to an np_screens board.

Dossiers and the link graph

A subject is a person, with whatever the server knows about them.

A dossier with identity, phones, vehicles, gang, marks, documents and bank summary, and the link graph with calls, SMS, co-location, shared vehicle and money filters
  • Profile: watchlist tier, aliases and notes, plus identity, job, owned vehicles and plates, phone numbers, gang, marks and documents from the framework, np_character, np_identification, np_gangs and np_tattoos when they run.
  • Bank movement from np_banking appears only when a warrant covers it.
  • Links: edges from calls, SMS, co-location, shared vehicles and money, weighted by how often. Add a manual link or hide the weak ones.
  • Pattern of life: a 7 by 24 grid from location samples, a timeline, and known locations clustered from device pings.
  • Case file: export to an np_screens board, a printable surv_case_file item and an np_discord log line.

Field devices

Items you carry and plant, each unit with its own serial. Every ping and recording becomes intel.

The field kit of a case: GPS trackers, a room bug and a SIM clone with serial, status and battery, one tracker found
ItemWhat it does
GPS trackerSticks to a vehicle and pings while powered, with a battery that drains. A kill-switch jammer from np_mechanic blocks the ping
Room bugPlaced at a spot. Live-listen through pma-voice, or "voices detected" intel on other voice systems
Laser micAim at a window within range for a shorter, narrower listen
SIM clonerStay close to a player for 20 seconds by default, then their SMS is mirrored for hours
USB implantPlug into a terminal and log its activity for a while
Print kitLift a print from someone the target touched recently and identify the character
BinocularsA zoom view with a one-key "log sighting" that files intel with coordinates
  • Plant flow: a small minigame (np_minigames when present) and an exposure meter. The server checks the clock, a failure drops the item and a loud plant gives the target a subtle hint.
  • Tail mode: the distance to a marked subject with a 30 to 90 metre sweet spot. Too close or too long and they get an "am I being followed?" hint.
  • Counterplay: anyone can search a vehicle or an area, with a chance and a cooldown. A found device is marked Found in the console and can be kept (the serial is evidence) or destroyed.

Phone taps and the scanner

np_phone lines under a warrant. There is no agent phone app: agents get np_phone notifications and toasts.

Intercepts with a live call and an idle line, keyword triggers shipment, boat and pier, the tap form, live notes and the phone scanner
  • Live listen: an agent joins a tapped call's voice channel without speaking (pma-voice). SaltyChat and YACA get metadata only.
  • Call log and SMS mirror: who, when, how long and which tower, and the text of tapped SMS.
  • Keyword triggers: a matching SMS or note becomes a high-severity alert. You type timestamped live notes while you listen.
  • Phone scanner: lists np_phone numbers within range with a burner score (prepaid, recently activated, moving with a subject) and links a number to a subject.
  • Cell towers you configure give an approximate position with an error radius. A tap ends when its warrant does.

Warrants and admissibility

Off by default. Turn "Warrants required" on and the case file shows what would stand up in court.

Warrants of a case: a denied person warrant with the judge's reason and two requests with Approve, Deny and Amend
  • Request: phone, plate, address or area, person or bank records, with a reason and a duration. An address warrant stores a position and a radius.
  • The bench: a judge approves, denies or amends. Judges are told of new requests and cannot decide their own by default.
  • Expiry and revoke: warrants never run open-ended. A lead can withdraw one, and members are told of every decision.
  • Admissible or not: each intel entry is checked against the warrants of the case and marked, such as the bank movement not admissible in the alert stream.
  • Optionally feed the warrants to np_identification so an ID check shows an open warrant, next to the np_prison ones.

The investigations stack

np_surveillance owns the case. The addons own their own world and file what they learn as intel.

ResourceWhat it addsNeeds np_surveillance
np_cctvCameras and recorders in the world and a monitor. Every camera is an intel source on the ops map, notable events and shared footage become intelOptional
np_spy-pigeonA surveillance pigeon you fly from a loft. It shows on the ops map as a live source and files photos, plate reads, mic reports and marked suspects on your caseRequired

The addons register themselves as sources with registerSource, drop live points with pingSource and file entries with addIntel. np_surveillance never depends on them.

Set it up

Compatibility

np_prophandler 1.1.0+ is required. Every other sibling is detected at start and optional with a fallback. It runs with none of them. No ACE is used anywhere.

KindSupported
Frameworkes_extended first, then qbx_core, qb-core or standalone
Inventorynp_inventory first (items registered on start, evidence stashes), then ox_inventory, qb-inventory (ps, lj) or none
Phone and voicenp_phone for line taps, the SMS mirror and notifications, pma-voice to listen. SaltyChat and YACA give metadata only
Dossier sourcesnp_character, np_identification, np_gangs, np_banking, np_prison, np_tattoos and np_clothing
Field and worldnp_menu, ox_target or qb-target for options, np_minigames for the plant skill check, np_mechanic for real plates and the kill-switch jammer
Outnp_screens for the case map and case file, np_helicam BOLO on flagged plates, np_mdt and np_discord for top alerts, np_hud toasts, np_flightradar aircraft on the map
Staffnp_admin permission nodes, the Resource settings page, the audit log and the server theme, or the framework's admin groups, a list of identifiers or np_discord roles

Installation

oxmysql and np_prophandler 1.1.0+ are the hard dependencies. The schema is applied on every start.

  1. Put the resource in resources/ as np_surveillance, next to your framework, oxmysql and any np_* siblings.
  2. The database schema is applied by the resource itself. sql/install.sql is the same SQL if you prefer to import it by hand.
  3. Start it after oxmysql, your framework and your inventory:
    ensure oxmysql
    ensure es_extended     # or qbx_core / qb-core (optional)
    ensure np_inventory    # or ox_inventory / qb-inventory (optional)
    ensure np_admin        # optional: permissions, settings, theme
    ensure np_prophandler  # required, 1.1.0+
    ensure np_surveillance
    ensure np_cctv         # optional addon
    ensure np_npchandler   # required by np_spy-pigeon
    ensure np_spy-pigeon   # optional addon
  4. The NUI ships prebuilt in releases. To build it from source:
    cd web && npm install && npm run build
  5. Set the access in shared/config/00_core.lua (or the np_admin Resource settings page): the job and grade for investigator, lead and judge, the console command, key, laptop item and ops terminals, and Config.Warrants.required.
  6. On start the console prints one line per sibling and a ready line. Switch any sibling off in Config.Integrations to force its fallback.

For your own scripts

The public API is what np_cctv and np_spy-pigeon use: exports, veto and value hooks, and server events.

-- register your own intel source, then drop a live point on the ops map
exports.np_surveillance:registerSource('my_drone', { label = 'Drone', icon = 'fa-solid fa-plane', layer = 'drone' })
exports.np_surveillance:pingSource('my_drone', droneId, coords, { caseId = caseId })

-- may this player act on this case?
if exports.np_surveillance:canAccess(src, caseId, 'investigator') then
  exports.np_surveillance:addIntel({
    caseId = caseId, kind = 'sighting', severity = 2, coords = coords,
    source = { type = 'my_drone', id = droneId }, payload = { text = 'seen leaving the pier' },
  })
end

-- react to every intel entry
exports.np_surveillance:onIntel(function(intel) end)

Also getCase, listCases, registerDeviceType, tagSubject, isCovered and hooks such as beforeIntel, beforeWarrant and intelSeverity.

Questions

Do I need np_cctv or np_spy-pigeon?

No. np_surveillance runs on its own and never depends on them. They are addons that use its public API: np_cctv adds in-world cameras, and np_spy-pigeon adds a surveillance bird and requires np_surveillance.

Do I have to use warrants?

No. "Warrants required" is a setting. While it is off, everything is covered and admissible. Turn it on and intel without a covering warrant is marked not admissible, and the devices and lines that need a warrant ask for one.

Can I run it without np_phone, np_inventory or np_admin?

Yes. Every np_* sibling but np_prophandler is optional and has a fallback, and it runs with none of them present. Phone taps and the SMS mirror need np_phone, and field items are first-class on np_inventory, with ox_inventory and qb-inventory supported.

Is there a phone app for agents?

No. Agents get np_phone notifications and np_hud toasts, and work in the console, which opens by command, key, laptop item or ops terminal.

Who can see a case?

Its members and staff. Roles come from job and grade in the config (investigator, lead, judge) plus np_admin nodes when it runs, and a member can carry a per-case role on top. Map positions are only sent to members of the case.

Can players find the devices?

Yes. Anyone can search a vehicle or area, with a chance and a cooldown. A found device goes Found in the console and the finder can keep it, with its serial as evidence, or destroy it.

Is it in German?

English and German, set with Config.Locale.

Works well with

Ensure it, open a case, follow the intel.

Installation, every config key and every export are in the docs.

Install np_surveillance