Skip to content

Access, commands & admin ​

np_surveillance uses no ACE: no add_ace, no principals, no IsPlayerAceAllowed, and no convars. There are two layers:

  • Investigators are recognised by job and grade (Config.Access.roles, Installation → Roles), and by being a member of the case.
  • Staff are not a job. Every staff check asks for a permission node through the np_admin lib vendored byte-identical in bridge/np_admin.lua (np_admin stays optional).

Permission nodes ​

Node Grants
np_surveillance.admin Every node below, and every case: the case list shows all cases, and staff pass every case check
np_surveillance.ops.view The live map, alert stream and replay of any case
np_surveillance.ops.edit Geofences, case vehicles and listening posts of any case
np_surveillance.ops.rules Trigger rules of any case
np_surveillance.ops.cast Push any case map to an np_screens board
np_surveillance.dossier.view Open dossiers, link graphs and timelines of any case
np_surveillance.dossier.edit Tag subjects and add notes, numbers, plates and links in any case
np_surveillance.dossier.export Print, cast and log case files of any case
np_surveillance.devices.manage Power, listen and manage field devices of any case
np_surveillance.lines.tap Establish and lift warrant-gated phone taps
np_surveillance.lines.scan The phone scanner and locating numbers from cell towers
np_surveillance.warrant.request File warrant requests
np_surveillance.warrant.decide Approve, deny and amend requests (the judge's powers)
np_surveillance.warrant.revoke Revoke approved warrants and withdraw requests
np_surveillance.warrants.staff The staff views: every case with its warrant counts, and the audit log
np_surveillance.warrants.settings Switch warrants required on and off from the console

With np_admin running, np_admin decides: grant the nodes (or np_surveillance.*) to staff groups in its permission matrix. The framework groups, Config.Admins and the Discord roles below no longer count.

Without np_admin (or with Config.Integrations.np_admin = false) a staff member holds every node. A staff member is:

  • a player in one of the framework's admin groups (Config.AdminGroups: admin and superadmin on es_extended via getGroup(), admin and god on qb-core and qbx_core via HasPermission);
  • a player with an identifier in Config.Admins ('license:…', 'discord:…', …);
  • with np_discord running, a player holding one of Config.AdminDiscordRoles (role ids or np_discord role names), cached for Config.AdminDiscordCacheSeconds (60 s).

A role from a job never makes someone staff. The server console may do everything. See Permissions & np_admin for how the np_* resources share this.

Commands and keys ​

Command / key Who What
/surveillance Everyone (the console only offers what they may see) Opens the console. Config.Console.command
F7 Everyone The same, as a key mapping (only near an ops terminal once terminals are configured). Config.Console.key; players rebind it in the FiveM key settings
/warrants Judges and staff Opens the judge's bench and the staff views without the console (Warrants). Config.Warrants.command
G Everyone Search for planted devices (Counterplay)
H Investigators in the field Plant a room bug
J Investigators in the field Log a sighting with binoculars
L Investigators in the field Toggle tail mode
E at a planted bug or laser mic Investigators Start or stop listening
O at a found device Anyone who found it Take it as evidence

The field keys are registered as key mappings, so each player can rebind them.

There are no other commands. Everything else is in the console.

Settings page Surveillance ​

np_surveillance registers its config with np_admin's Resource settings (icon binoculars, aqua): language, debug, the warrants required switch, and the numbers of every module. np_admin stores only the overrides; the config files stay the default. The full list is on Configuration → Editable in np_admin. The settings are listed even while np_surveillance is stopped.

Audit log ​

Every state change is written to the table np_surveillance_audit with the actor and the case: case and subject changes, every warrant step, device plants and finds, taps and links, dossier edits and exports, geofences, rules, case vehicles and map casts. With np_admin the entries also go to its audit log under the category surveillance; with np_discord they go to the audit channel (Integrations). Staff read the log in the Staff view of the Warrants tab (Warrants).

Theme ​

The console and the field HUD follow np_admin's central theme (npAdmin.onTheme); without np_admin they use the Nimbus default. Config.Theme overrides brand, strength or material for np_surveillance alone.