Configuration ​
shared/config/00_core.lua holds the core settings; every module keeps its own in shared/config/<name>.lua. Every
file is commented. All of them are shared (client and server), so nothing secret goes in there. There are no convars.
Every number is a starting value; tune it for your server.
With np_admin running, the main tunables are also editable in game on its Resource settings page under Surveillance (see Editable in np_admin).
| File | What |
|---|---|
shared/config/00_core.lua |
Framework, Inventory, Locale, staff without np_admin (Admins, AdminGroups, AdminDiscordRoles), Integrations, Access, Warrants basics, Intel, Console, Payments, Theme, rate limits, timers |
shared/config/ops.lua |
The ops console: map refresh, alerts, geofences, trigger rules, case vehicles, listening posts, replay, screens, MDT and Discord forwarding |
shared/config/dossier.lua |
Subjects, link analysis, pattern of life, known locations, bank summary, the case-file export |
shared/config/devices.lua |
The field kit: device types, plant flow, exposure, GPS, bug, laser, SIM, USB, print kit, binoculars, tail mode, counterplay |
shared/config/lines.lua |
Phone taps, keyword triggers, the phone scanner, cell towers |
shared/config/warrants.lua |
Warrant types, durations, requests, admissibility per intel kind, notifications |
shared/np_admin_settings.lua |
Registers the fields below with np_admin. Nothing to edit |
shared/locales/en, de |
Every player-facing string of the Lua side |
Core (00_core.lua) ​
| Option | Default | Description |
|---|---|---|
Config.Framework |
'auto' |
'esx', 'qbx', 'qb', 'standalone' (auto: es_extended > qbx_core > qb-core) |
Config.Inventory |
'auto' |
'np', 'ox', 'qb' (qb, ps and lj inventory), 'none' (auto: np_inventory > ox_inventory > qb-inventory) |
Config.Locale |
'en' |
'en' or 'de' |
Config.Debug |
false |
Debug log |
Config.Integrations.<name> |
'auto' |
Every sibling (Integrations): 'auto' = used while it runs, false = always the built-in fallback |
Config.Admins / AdminGroups / AdminDiscordRoles |
{} / es_extended admin, superadmin; qb admin, god / {} |
Staff without np_admin. See Access, commands & admin |
Config.AdminDiscordCacheSeconds |
60 |
How long a Discord role answer is kept |
Config.Payments |
{ account = 'bank' } |
Reserved for optional fees. This version charges nothing |
Config.Theme |
all nil |
brand, strength ('accent', 'tiles', 'glass'), material ('frosted', 'liquid'). nil = whatever np_admin's theme says |
Config.Rpc |
{ perSecond = 8, burst = 16 } |
Token bucket per player for every RPC |
Config.Timers |
{ tickSeconds = 5 } |
Scheduler tick (warrant expiry, tap expiry) |
Access ​
Config.Access.roles maps a role to jobs and the lowest grade (see Installation → Roles).
Config.Access.actions says which role may do which action. Staff may always. Case actions also need membership of the
case.
| Action | Roles | Where |
|---|---|---|
case.create |
investigator, lead | Open a case |
case.close, case.member |
lead | Close a case, add and remove members |
intel.add, subject.tag |
investigator, lead | Add intel, tag a subject |
intel.view |
investigator, lead, judge | Read a case's intel |
warrant.request |
investigator, lead | Warrants |
warrant.decide |
judge | Approve, deny and amend |
warrant.revoke |
lead | A lead may withdraw or revoke a warrant on a case they belong to (a judge or staff may revoke any) |
ops.view, ops.edit |
investigator, lead | Live map, alerts, replay; geofences, case vehicles, listening posts |
ops.rules, ops.cast |
lead | Trigger rules; push the map to a screen |
dossier.view |
investigator, lead, judge | Open dossiers |
dossier.edit, dossier.export |
investigator, lead | Edit a dossier; print, cast and log a case file |
device.plant, device.manage, device.listen |
investigator, lead | Field devices |
device.use |
investigator, lead, judge | Look at the devices of a case |
line.view |
investigator, lead, judge | See taps and what they caught |
line.tap, line.note, line.scan |
investigator, lead | Phone lines |
Searching for a device (the counterplay) is open to everyone and has no action on purpose.
Intel ​
| Option | Default | Description |
|---|---|---|
Config.Intel.kinds |
note, sighting, location, document, ping, call, sms, bank, link, alert, plus device, bug, print, implant |
The kinds the console labels. A kind is just a string: another resource may file its own |
Config.Intel.defaultSeverity |
1 |
Severity (0..5) of an entry that names none |
Config.Intel.alertSeverity |
3 |
An entry at or above this severity enters the alert stream |
Config.Intel.maxPayloadBytes |
16384 |
Largest encoded payload of one entry |
Console ​
| Option | Default | Description |
|---|---|---|
Config.Console.command |
'surveillance' |
/surveillance (empty string = no command) |
Config.Console.key |
'F7' |
Default key mapping, remappable in the FiveM settings (empty = none) |
Config.Console.item |
'surv_laptop' |
The usable item that opens the console (false = no item) |
Config.Console.terminals |
{} |
{ coords = vector3(...), radius = 1.5, label = 'Mission Row Ops' }: once any is listed, the F7 key opens the console only within radius of one (the command and the laptop work anywhere) |
Ops (ops.lua) ​
See Ops console for what each part does.
| Option | Default | Description |
|---|---|---|
Config.Ops.mapRefreshSeconds |
3 |
How often the open Ops tab asks the server for positions (the server never pushes positions) |
Config.Ops.members.requireDuty |
true |
An off-duty member is not drawn on the map |
Config.Ops.recentPings |
{ keep = 40, windowSeconds = 900 } |
Device pings kept per case for the dotted trails |
Config.Ops.alerts |
minSeverity 2, listLimit 60, scan 400, keep 60, notifySeverity 4 |
The stream shows entries from minSeverity; members get a toast from notifySeverity |
Config.Ops.geofence |
maxPerCase 12, maxPoints 24, minArea 50.0, defaultSeverity 3 |
Fence limits (square metres) and the severity of an enter or leave entry |
Config.Ops.rules |
maxPerCase 20, maxKeywords 6, cooldownSeconds 30 |
Trigger rule limits; a rule's notify, page and flag do not repeat sooner than the cooldown |
Config.Ops.vehicles |
{ maxPerCase = 12, markRange = 10.0 } |
Case vehicles; how close you stand to mark one |
Config.Ops.listeningPosts |
three posts | { id, label, coords = { x, y, z }, radius }. Edit these to your map; a case claims the ones it uses |
Config.Ops.replay |
hours 24, maxIntel 800, maxPointsPerTrack 400, kinds ping, location, sighting |
The 24 h replay |
Config.Ops.screens |
one board | { id, label, contentId }: the np_screens boards a case map can be pushed to. The client names the id, never a content |
Config.Ops.cast |
pushSeconds 30, width 1280, height 720, maxObjects 300 |
Re-render interval and canvas of a cast map |
Config.Ops.mdt |
{ enabled = true, minSeverity = 5 } |
Alerts from this severity go to np_mdt as a neutral note without names |
Config.Ops.discord |
{ minSeverity = 5 } |
Alerts from this severity go to one np_discord log line |
Config.Ops.page |
{ blipSeconds = 30 } |
How long a paged member's flashing blip stays |
Dossier (dossier.lua) ​
See Dossiers.
| Option | Default | Description |
|---|---|---|
Config.Dossier.maxTier |
9 |
Watchlist tier 0 to maxTier (the store allows 0 to 9) |
Config.Dossier.aliases |
{ max = 12, length = 48 } |
Aliases per subject and their length |
Config.Dossier.nameLength / noteLength |
96 / 1200 |
Characters of a name and of one note |
Config.Dossier.intelLimit |
1500 |
Newest intel entries read when a graph, pattern or timeline is built |
Config.Dossier.cacheSeconds |
30 |
Identity lookups (numbers, plates, bank rows) are reused this long |
Config.Dossier.utcOffset |
0 |
Hours added before intel is cut into weekday and hour buckets |
Config.Dossier.sampleKinds |
ping, location, sighting |
Kinds with a position that count as where a subject was |
Config.Dossier.vehicles |
source = 'auto', limit = 25, presets for esx, qb, qbx |
Owned vehicles are read from the framework's vehicle table. false = no lookup |
Config.Dossier.bank |
{ days = 30, limit = 200, top = 5 } |
The bank movement summary (needs a bank warrant) |
Config.Dossier.locations |
{ radius = 60.0, minSamples = 3, max = 8 } |
Known locations: fixes clustered with a greedy radius pass |
Config.Dossier.pattern |
{ days = 14 } |
The pattern-of-life window |
Config.Dossier.graph |
depth 2, maxNodes 40, minWeight 0, coLocationMeters 40.0, coLocationSeconds 600, admissibleOnly false and weights |
The link graph. weights are call 1.0, sms 0.5, colocation 2.0, vehicle 3.0, money 2.0, link 3.0, owns 1.0 |
Config.Dossier.timeline |
{ limit = 60, max = 200 } |
Timeline page size and cap |
Config.Dossier.export |
item 'surv_case_file', screen true, contentId, discordChannel 'dossier', timelineLines 25, itemMaxBytes 6000, cooldown 10 |
The case-file export targets |
Field devices (devices.lua) ​
See Field devices.
| Option | Default | Description |
|---|---|---|
Config.Devices.enabled |
true |
Switches the whole module |
plantRange |
3.0 |
Metres to the target a plant is offered on |
maxAttemptSeconds |
180 |
A plant attempt older than this is dropped |
dropOnFail |
true |
A failed minigame loses the item |
itemWeight |
800 |
Weight of a device item |
searchSeconds / searchRange / searchChance / searchCooldown |
6 / 3.5 / 0.6 / 30 |
The counterplay search |
hintLevel |
0.65 |
Exposure (0..1) at which the target gets a subtle hint |
types |
seven types | { label, icon, item, category, pingSeconds, warrant, minSeconds, exposure, severity } per device, see below |
gps |
batterySeconds 3600, drainPerPing 3, lowBattery 20 |
Optional pingSeconds overrides the type's interval |
bug |
listenSeconds 300, listenRange 25.0, detectSeconds 8, voicesRange 30.0 |
Room bug |
laser |
listenSeconds 120, range 45.0, listenRange 12.0 |
Laser microphone |
sim |
range 2.0, seconds 20, hours 12 |
SIM cloner |
usb |
hours 6, range 2.5 |
USB implant |
print |
range 2.5, window 600 |
Print kit |
binoculars |
fov 16.0, fovMin 6.0, fovMax 45.0, zoomStep 4.0 |
Binoculars zoom |
tail |
min 30.0, max 90.0, closeSeconds 6, hintSeconds 25, checkSeconds 5, dropSeconds 10 |
Tail mode |
handler |
toasts, pingToast, lowBatteryToast all true |
Messages from the "handler" in the field |
costs |
all 0 |
Reserved for a price per device item. This version charges nothing |
| Device type | Category | Warrant | Plant takes at least | Exposure | Severity |
|---|---|---|---|---|---|
surv_gps_tracker |
vehicle | plate | 6 s | 0.35 | 3 |
surv_room_bug |
audio | address | 5 s | 0.5 | 3 |
surv_laser_mic |
audio | address | 4 s | 0.4 | 3 |
surv_sim_cloner |
phone | phone | 20 s | 0.25 | 4 |
surv_usb_implant |
data | none | 8 s | 0.2 | 4 |
surv_print_kit |
forensic | none | 5 s | 0.15 | 2 |
surv_binoculars |
optic | none | 0 s | 0.0 | 1 |
Phone lines (lines.lua) ​
See Phone lines.
| Option | Default | Description |
|---|---|---|
Config.Lines.pmaCallOffset |
10000 |
pma-voice call-channel offset. Must equal np_phone's Config.VoiceCallChannelOffset |
Config.Lines.keywords |
shipment, boat, package, drop, meet, cash, cops |
Case-insensitive substring triggers on SMS text and typed notes |
Config.Lines.keywordSeverity |
4 |
Severity of a matching SMS or note |
Config.Lines.severity |
call 2, sms 2, note 1, link 1, location 1 |
Severity by kind when no keyword matched |
Config.Lines.maxTapSeconds |
7200 |
An explicit tap duration is capped here (the warrant still governs) |
Config.Lines.noteMaxChars |
280 |
A typed live note |
Config.Lines.scanner |
range 60.0, hits 24, burnerRecentMinutes 120 |
The phone scanner |
Config.Lines.towers |
{} |
{ id = 'LS-114', label = 'Pillbox', coords = { x, y, z } } per cell tower |
Config.Lines.towerErrorBase / towerErrorStep |
40.0 / 25.0 |
Error radius in metres with three towers, and the extra per missing tower |
Config.Lines.encryptedApps |
{} |
np_phone apps that are end-to-end encrypted: only metadata is kept, never content |
Warrants (warrants.lua) ​
See Warrants. Config.Warrants.required, identificationProvider and pmaCallOffset are in the core file.
| Option | Default | Description |
|---|---|---|
Config.Warrants.required |
false |
When on, intel is only admissible under a matching warrant. When off, everything is admissible and the module is optional |
identificationProvider |
false |
Register a combined warrant provider with np_identification |
command |
'warrants' |
Opens the judge's bench and the staff views outside the console ('' = no command) |
kinds |
all five | The warrant types offered: phone, plate, address, person, bank |
defaultHours / minHours / maxHours |
72 / 1 / 336 |
Durations. The core caps any warrant at 720 h |
reasonMinLength |
12 |
Shortest reason in a request |
maxPending |
8 |
Open requests per case |
requestCooldownMs |
3000 |
Between two requests by one player |
allowSelfDecision |
false |
A judge may decide a request they filed themselves |
addressRadius / maxAddressRadius |
40.0 / 300.0 |
Metres around a requested position, and the largest a judge may set |
intelKinds |
see Warrants | The warrant kind that must cover each intel kind, or false = never needs one |
otherKinds |
all five | The warrant kinds that may cover an intel kind that is not listed (a module's own, such as bug) |
identificationKinds |
{ 'person' } |
The kinds that count as an open warrant on a document check (with the provider on) |
notify |
{ judges = true, members = true } |
Who is told about requests and decisions |
discord |
{ enabled = true, channel = 'warrants' } |
np_discord log lines for every request, decision, amendment, revocation, expiry and setting change |
queueRecent |
15 |
Recent decisions the bench lists |
staff |
{ casesLimit = 200, auditPageSize = 50 } |
Staff views: cases and audit entries per page |
Editable in np_admin ​
With np_admin running, its Resource settings page under Surveillance edits the values below. np_admin stores only the overrides; the config files stay the defaults. Live values apply at once; reload is taken over at a player's next init; restart is read once at start.
| Category | Fields |
|---|---|
| General | Language (reload), debug log, warrants required, feed warrants to np_identification (restart) |
| Ops | Map refresh (reload), hide off-duty members, alert stream from severity, toast from severity, geofences per case, geofence intel severity, trigger rules per case, rule cooldown, case vehicles per case, replay window, map push interval, send top alerts to np_mdt, np_mdt from severity |
| Dossier | Known-location radius and fixes needed, pattern-of-life window, UTC offset, co-location distance and window, only admissible evidence makes a link, bank summary window, export to np_screens, printable item (restart) |
| Devices | Module on or off, plant range, a failed plant loses the item, GPS ping interval and battery per ping, SIM and USB duration, tail sweet spot, counterplay search chance and time |
| Lines | pma-voice call offset (restart), keyword triggers, keyword severity, max tap duration, scanner range, burner window, tower error radius |
| Warrants | Warrant types offered, default, shortest and longest duration, shortest reason, open requests per case, judges may decide their own requests, address radius, who is notified, Discord logging and channel, audit page size |
The np_admin permission nodes are on Access, commands & admin.