Configuration ​
The settings are in shared/config.lua. The built-in document types and exams are in shared/documents.lua (see
Document types); types and exams saved in the designer live in the database and win
over that file.
Both files are shared (client and server), so keep secrets out of them. The webhook goes in server.cfg
(Installation).
General ​
| Option | Default | Description |
|---|---|---|
Config.Debug |
false |
Debug output: bridge calls that failed, framework callbacks |
Config.Locale |
'de' |
'de' or 'en', for server messages, notifications and the UI |
Config.DateFormat |
'DD.MM.YYYY' |
Display format in the UI (tokens YYYY YY MMMM MM M DD D). Dates are always stored as ISO (YYYY-MM-DD) |
Config.Framework |
'auto' |
'qbx', 'qb', 'esx', 'standalone', or auto-detect (qbx → qb → esx → standalone) |
Config.Inventory |
'auto' |
'ox', 'qb', 'esx', 'none', or auto-detect (ox → qb → esx → none). none = digital only |
Config.MDT |
'auto' |
'none' or an MDT bridge in bridge/mdt/server/ for warrant lookups. See Bridges → MDT |
Config.Payments |
'auto' |
Desk fees, renew / replace and the forger through the np_payments checkout: 'auto' while np_payments runs, true required, false never (direct bridge charge). See Showing & issuing → np_payments |
Config.RequireItem |
true |
Physical cards. false (or an inventory without metadata) makes every document digital: shown from the database and the phone app, no items handed out, no handing over, no forger |
Showing, keys and commands ​
Config.ShowDistance = 3.0
Config.RequestTimeout = 20
Config.Keys = { open = 'F6', badge = '' }
Config.Commands = {
picker = 'ausweis', badge = 'badge', issue = 'lizenz', check = 'ausweispruefung', designer = 'iddesigner',
}
Config.Animations = {
show = { dict = 'paper_1_rcm_alt1-9', clip = 'player_one_dual-9', prop = 'prop_cs_business_card', bone = 28422 },
badge = { dict = 'paper_1_rcm_alt1-9', clip = 'player_one_dual-9', prop = 'prop_fib_badge', bone = 28422 },
}
| Option | Description |
|---|---|
ShowDistance |
Metres between presenter and viewer, checked on the server. Handing over uses the same distance, clerks ShowDistance + 1, badges 2 × ShowDistance |
RequestTimeout |
Seconds a police Ausweis verlangen request stays open |
Keys.open |
Default key for the picker (F6) |
Keys.badge |
Default key for /badge. Empty = no key mapping at all (the command always works) |
Commands.* |
Command names. issue is the clerk panel, check the police check, designer the admin designer |
Animations.show / badge |
Animation dict, clip, prop and bone for showing a card and flashing a badge. The prop is an np_prophandler synced attachment (key card), not shown in a vehicle |
Players can rebind the keys under Settings → Key Bindings → FiveM. See Events & commands.
Serials and photos ​
Config.SerialPattern = 'LS #######'
Config.Photo = { method = 'screenshot', quality = 0.85, maxBytes = 120000 }
Config.ImageHosts = { 'r2.fivemanage.com', 'cdn.discordapp.com', 'i.imgur.com', 'media.discordapp.net' }
| Option | Description |
|---|---|
SerialPattern |
# = digit, A = letter, everything else is literal. A type can override it with rules.serial (at least 4 random positions) |
Photo.method |
'screenshot': screenshot-basic with the in-world mugshot camera, cropped in the UI. 'mugshotbase64': the MugShotBase64 resource (ped headshot). 'none': a silhouette placeholder |
Photo.quality |
JPEG quality after cropping (the crop is 300 × 364) |
Photo.maxBytes |
Photos above this size (base64 length) are rejected by the server |
ImageHosts |
Hosts allowed for images in the designer (logos, watermark, image elements) and for photo URLs. Only https:// |
Config.AdminAce is gone: the designer and admin overrides need the np_admin node np_identification.admin
(Installation → Permissions).
Reminders, points, replacement ​
Config.Reminders = { 7, 3, 1 }
Config.Points = { expireDays = 60, suspendDays = 14 }
Config.ReplacementFee = 50
| Option | Description |
|---|---|
Reminders |
Days before expiry when the holder gets a reminder: an np_phone notification from the Dokumente app, else a normal notification. Checked on load and every hour, once per document and threshold per session |
Points.expireDays |
Each entry of points expires after this many days |
Points.suspendDays |
Length of the automatic suspension when a document reaches its type's rules.pointsMax |
ReplacementFee |
Fee for replacing a lost document (bank, else cash) |
See Police → Points.
Desks ​
Config.Desks = {
{
id = 'cityhall', label = 'Bürgerbüro Los Santos', icon = 'fa-landmark', tint = 'pink',
coords = vector4(-544.85, -204.13, 38.22, 210.0), ped = 'a_f_y_business_02',
blip = { sprite = 498, color = 8, scale = 0.8 },
camera = { offset = vector3(0.0, 0.85, 0.65), fov = 32.0 },
types = { 'id_card', 'driver_license', 'boat_license', 'pilot_license', 'business_license', 'hunting_license' },
},
{
id = 'ammunation', label = 'Ammu-Nation', icon = 'fa-gun', tint = 'orange',
coords = vector4(16.34, -1107.02, 29.80, 160.0), ped = 's_m_y_ammucity_01',
blip = false,
camera = { offset = vector3(0.0, 0.85, 0.65), fov = 32.0 },
types = { 'weapon_license' },
},
}
| Key | Description |
|---|---|
id |
Desk id. Document types list it in rules.desks |
label, icon, tint |
Name, Font Awesome icon and Nimbus tile tint in the desk UI and the phone app |
coords |
vector4 of the NPC (heading = w) |
ped |
NPC model |
blip |
{ sprite, color, scale } or false |
camera |
Mugshot camera: offset relative to the player's ped, fov |
types |
Document types this desk offers. A type's rules.desks adds it to a desk too |
Admins can place more desks in game from the designer, or replace a config desk by using its id. Those desks are stored in the database and pushed to every client without a restart. See Designer → Desks.
Forger ​
Config.Forgery = {
enabled = true,
coords = vector4(1275.73, -1710.47, 54.77, 300.0), ped = 'g_m_m_chicold_01',
qualities = {
{ id = 'low', label = 'Billig', price = 1500, typoChance = 0.6, hologram = false },
{ id = 'mid', label = 'Ordentlich', price = 5000, typoChance = 0.2, hologram = false },
{ id = 'high', label = 'Profi', price = 15000, typoChance = 0.0, hologram = true },
},
types = { 'id_card', 'driver_license', 'weapon_license' },
}
| Key | Description |
|---|---|
enabled |
Spawns the forger NPC (no blip) |
coords, ped |
Position and model of the NPC |
qualities[].price |
Cash price. With np_payments the sheet offers cash only |
qualities[].typoChance |
Chance per name field of a swapped-letter typo (0..1) |
qualities[].hologram |
Whether the fake has the hologram seal |
types |
Document types the forger makes |
See Police → Forgery.
Items, badges, police jobs ​
Config.Items = { uvLamp = 'uv_lamp' }
Config.Badges = {
police = { design = 'lspd', label = 'Los Santos Police', minGrade = 0, number = 'callsign', document = 'service_id' },
sheriff = { design = 'bcso', label = 'Blaine County Sheriff', minGrade = 0, number = 'callsign', document = 'service_id' },
sahp = { design = 'sahp', label = 'San Andreas Highway Patrol', minGrade = 0, number = 'callsign', document = 'service_id' },
ambulance = { design = 'lsmd', label = 'Los Santos Medical', minGrade = 0, number = 'callsign', document = 'service_id' },
fib = { design = 'fib', label = 'Federal Investigation Bureau', minGrade = 0, number = 'citizenid' },
doj = { design = 'doj', label = 'Department of Justice', minGrade = 0, number = 'citizenid', document = 'lawyer_license' },
}
Config.PoliceJobs = { 'police', 'sheriff', 'sahp', 'fib' }
| Option | Description |
|---|---|
Items.uvLamp |
Item that unlocks the UV lamp (U) in the viewer |
Badges[job] |
Key = job name. Only these jobs have a badge |
Badges[job].design |
Badge artwork: lspd, bcso, sahp, lsmd, fib, doj |
Badges[job].label |
Department name on the badge |
Badges[job].minGrade |
Lowest job grade with a badge |
Badges[job].number |
Badge number: 'callsign' (qb / qbx metadata.callsign, else the server id), 'serverid' or 'citizenid' |
Badges[job].document |
Optional document type shown next to the badge when the player holds a valid one |
PoliceJobs |
Jobs that count as police: checks, ID requests, points, suspensions, seizures. They must be on duty |
See Police → Badges.
Log and phone app ​
Config.Log = { webhook = '', keepDays = 90 }
Config.PhoneApp = {
enabled = true, id = 'np_identification', name = 'Dokumente',
icon = 'fa-solid fa-id-card', tint = 'blue', default = true,
}
| Option | Description |
|---|---|
Log.webhook |
Discord webhook URL. Prefer the np_identification_webhook convar, which wins and stays out of git |
Log.keepDays |
Rows in ident_log older than this are deleted once a day. 0 keeps everything |
When np_admin runs, every audit entry is also sent to its audit log (category
np_identification). The database log and the webhook stay as they are.
| PhoneApp.enabled | Register the app with np_phone (when np_phone runs) |
| PhoneApp.id / name / icon / tint | App id (also used for phone notifications), home-screen name, Font Awesome icon, tile tint |
| PhoneApp.default | Installed by default on every phone |
See Phone app.
Editable in np_admin ​
When np_admin runs, staff can change part of this config live under Settings → Documents
(Resource settings). shared/config.lua stays the default; np_admin stores only the overrides.
Without np_admin the file is used as written.
| Category | Fields |
|---|---|
| General | Locale, DateFormat, Payments, Debug |
| Documents | RequireItem*, SerialPattern, ReplacementFee, Reminders, ImageHosts, Items.uvLamp |
| Showing | ShowDistance, RequestTimeout |
| Commands | Commands.picker / badge / issue / check / designer*, Keys.open / badge* |
| Photos | Photo.method, Photo.maxBytes |
| Police | PoliceJobs, Points.expireDays, Points.suspendDays |
| Forger | Forgery.enabled*, the price of each of the three qualities, Forgery.types |
| Logs | Log.webhook (secret; the convar still wins), Log.keepDays |
| Phone | PhoneApp.enabled*, PhoneApp.name* |
* needs a resource restart (commands, key mappings, the forger NPC and the phone app are set up at start).
Locale, DateFormat and Photo.method reach a client on its next NUI init; everything else applies live.