Configuration ​
shared/config.lua holds the server settings. shared/config/client.lua holds keys, noclip speeds, tag ranges, spectate
and ban presets (Config.Client). Both files are shared, so clients can read them: put owners and webhooks in convars
(see Installation).
Values marked panel below are also registered as np_admin's own settings. Staff change them live under Resource settings → np_admin; the file stays the default. See Resource settings.
Server (shared/config.lua) ​
lua
Config.Debug = false
Config.Locale = 'en'
Config.Framework = 'auto' -- es_extended, then qbx_core, then qb-core, then standalone
Config.Owners = {} -- prefer the convar np_admin_owners
Config.DefaultGroup = 'user' -- implicit base group of every player
Config.Groups = { … } -- seeded on the first start only, see Installation
| Section | Key | Default | |
|---|---|---|---|
Theme |
brand |
nil |
panel. Brand colour #RRGGBB of every np_* UI. nil: neutral grey. See Server theme |
strength |
'accent' |
panel. accent, tiles or glass |
|
material |
'frosted' |
panel. frosted or liquid |
|
Duty |
enabled |
true |
panel. false: staff are always on duty |
startOnDuty |
false |
panel. Staff join on duty | |
RateLimit |
perSecond / burst |
20 / 30 |
Token bucket per player over every RPC and net event |
maxPayload |
32768 |
Approximate JSON bytes of one RPC's arguments | |
Logs |
flushInterval |
4000 |
ms between batched DB inserts (also Discord routing and the dashboard feed) |
retentionDays |
90 |
panel, restart. Older rows are deleted on start. 0 keeps everything |
|
feedSize |
60 |
Entries kept in memory for the dashboard | |
joins |
true |
Log joins and drops (category join) |
|
discord |
see Audit log | Category → np_discord log channel | |
Moderation |
warnExpiryDays |
30 |
panel. 0: warns never expire |
banIp |
false |
panel. Also ban ip: identifiers (can hit shared households) |
|
extendBans |
true |
panel. A banned identifier or token joining with new identifiers adds them to the ban | |
permanentNeedsNode |
false |
panel. Permanent bans also need np_admin.bans.permanent |
|
appealUrl |
'' |
panel. Shown on the ban card | |
maxMoney |
10000000 |
panel. Per give-money action | |
Reports |
categories |
player, bug, question, other | panel. { value, label } list |
cooldown |
60 |
panel. Seconds between two reports of one player | |
maxOpen |
2 |
panel. Open reports per player | |
contextSeconds |
30 |
panel. Seconds of the reporter's log entries attached as context | |
nearbyRadius |
40.0 |
Nearby players attached as context | |
BanTemplates |
4 templates | panel. { label, reason, duration } for the ban dialog. duration in seconds, 0 = permanent |
|
Vehicles |
spawnPerMinDefault |
10 |
Used when no group defines the limit vehicle.spawn_per_min |
World |
weathers |
15 weather types | Weather list of the World view |
maxClearRadius |
250.0 |
Maximum Clear area radius | |
ProtectedResources |
oxmysql, sessionmanager, spawnmanager, mapmanager, hardcap |
Never stopped or restarted from the panel. np_admin itself is always protected | |
Discord |
enabled |
false |
panel. Role sync through np_discord |
twoWay |
false |
panel. In-game grants of a mapped group add the Discord role, removals remove it | |
syncBans |
false |
panel. In-game bans ban on Discord too; revokes unban | |
requireRole |
nil |
panel. Refuse connecting without this role (np_discord's own Config.Connect is the better place) |
|
roles |
{} |
Default role mappings, merged with the panel mappings (the panel wins). See Discord | |
Commands |
see below | Chat command names |
lua
Config.Commands = {
staffChat = 'sc', announce = 'announce', bring = 'bring', ['goto'] = 'goto', kick = 'kick', ban = 'ban',
warn = 'warn', unban = 'unban', duty = 'duty',
}
Set a command to '' or nil to not register it.
Client (shared/config/client.lua) ​
Everything in Config.Client is cosmetic. The server authorises every action again.
| Key | Default | |
|---|---|---|
Locale |
Config.Locale |
Language of the client strings |
Keys |
see Staff tools | Key mappings. false registers no mapping (the command still exists) |
Commands |
admin, am, report, rr |
/admin [view], /am, /report [text], /rr <text> |
RequireDuty |
true |
Staff tools in the quick menu are locked while off duty |
Noclip |
speeds = { 1.5, 5, 12, 30, 75, 160 }, default = 3 |
Speed steps (m/s), fastMultiplier (Shift) 3.0, slowMultiplier (Ctrl) 0.25, localAlpha |
Tags |
ranges = { 10, 25, 50, 100 }, default = 25 |
ID tag ranges, update interval, includeSelf, headOffset, flagRefresh (warn badges) |
Spectate |
distance = 4.5 |
Orbit minDistance / maxDistance, height, fov, infoInterval, scopeTimeout, focusKey (19 = Left Alt) |
Freecam |
baseSpeed = 10.0 |
Speed multipliers, fov, maxDistance from the spectated target (0 = unlimited) |
Dev |
interval = 150 |
Dev overlay refresh, rayDistance, entity outline colour |
Vehicle |
recentMax = 8 |
Recently spawned models kept in KVP |
World |
15 weathers | Weather list, weatherTransition (s), clearRadii |
Bans.durations |
1 h, 1 d, 3 d, 7 d, 30 d, permanent | Ban dialog presets. Presets above the group's limit are hidden |
Reports |
4 categories | Categories of the /report dialog, toastDuration (how long Y can claim) |
Toasts.duration |
7000 |
Staff toast duration (ms) |
Own settings in the panel ​
np_admin registers these categories under Resource settings → np_admin:
| Category | Fields |
|---|---|
| Duty | Duty system, join on duty |
| Moderation | Warn expiry, ban IP addresses, extend bans, permanent bans need np_admin.bans.permanent, appeal URL, max money per action |
| Reports | Categories (JSON), cooldown, open reports per player, log context |
| Ban templates | Templates (JSON) |
| Logs | Keep logs (days, restart) |
| Discord | Role sync, two-way sync, ban on Discord, required role to join |
Everything except Keep logs applies live. Turning Discord role sync on syncs every online player right away.