Resource settings ​
Resources register part of their Config with np_admin. Staff then change those values live in Resource settings,
one form per resource, without editing files or restarting the server.

How values flow ​
config.luastays the default. The default of each field is whatever the resource'sConfigholds when it registers. np_admin stores only the overrides (tablenp_admin_settings).- On start the resource registers its schema, np_admin returns the stored overrides, and the lib writes them into
Configbefore the resource's own code reads it. - On save np_admin validates every value on the server (type, min / max / step, options, pattern, length), stores it,
writes an audit entry and pushes the change to the owning resource, which patches its
Config. Keys withscope = 'shared'also reach clients throughGlobalState['npcfg:<resource>']. - Without np_admin nothing changes: the resource uses
config.luaas written.
The page ​
| Part | |
|---|---|
| Resource list | Every registered resource with its number of settings, version and a badge with the number of overrides. Stopped resources appear when they declare a schema file |
| Category tabs | One tab per category the resource declared |
| Field rows | Label, help, the config.lua default when the value differs, and badges for apply mode and scope |
| Unsaved bar | Shows the number of unsaved changes and the strictest apply mode among them. Discard or Save & apply |
| History | Who changed what and when, old → new, for the resource or one field. Old values can be restored by hand |
| Export / Import | The overrides of a resource as JSON, e.g. to copy them to another server |
| Reset to config.lua | Removes every override of the resource (or one field) |
| Search | Search all settings finds a field in every resource. The command palette searches settings too |
Apply badges ​
| Badge | Meaning |
|---|---|
| live | The resource reads Config each time it needs the value. The change applies right away |
| client reload | Clients pick it up on their next init (reconnect, character load or the resource's next UI init) |
| restart | Read once at start. Restart the resource to apply it |
The scope badge shows shared for values that are also sent to clients. Server-only values stay on the server.
Secrets ​
Fields of type secret (webhooks, tokens) are masked as ********. Only staff with np_admin.settings.secrets see and
edit them. Secrets never reach clients. Convars still win where a resource documents it (for example
np_inventory_webhook).
Permissions ​
| Node | |
|---|---|
np_admin.settings.view |
See the page and every resource's settings |
np_admin.settings.view.<resource> |
See one resource's settings |
np_admin.settings.edit |
Edit every resource's settings |
np_admin.settings.edit.<resource> |
Edit one resource's settings |
np_admin.settings.secrets |
See and edit secret fields |
An explicit rule on the scoped node (or np_admin.settings.edit.<resource>.*) decides; otherwise the base node does. A
field can also declare its own permission; without it the field is read-only for that staff member. For example,
np_manufacturing's Allow all players needs np_admin.perms.manage.
Field types ​
toggle number slider select multiselect text textarea color list keybind coords secret json
Fields can carry min, max, step, unit, options, pattern (a Lua pattern), maxLength, help and
permission. Every property and limit is in the Settings reference. To register settings for
your own resource, see Converting a config or let the Config converter
write the file.
What's registered ​
| Resource | Page |
|---|---|
| np_admin | Configuration |
| np_hud | Configuration |
| np_phone | Configuration |
| np_menu | Configuration |
| np_character | Configuration |
| np_tattoos | Configuration |
| np_identification | Configuration |
| np_inventory | Configuration |
| np_payments | Configuration |
| np_fuel | Configuration |
| np_prison | Configuration |
| np_gangs | Configuration |
| np_faction | Configuration |
| np_drugs | Configuration |
| np_environmental | Configuration |
| np_helicam | Configuration |
| np_flightradar | Configuration |
| np_manufacturing | Configuration |
| np_discord | Configuration |
| np_prophandler | Configuration |
| np_npchandler | Configuration |
| np_net | Configuration |
| np_fishing | Configuration |
| np_golf | Configuration |
| np_darts | Configuration |
| np_billiards | Configuration |
| np_minigames | Configuration |
| np_metal-scanner | Configuration |
| np_surveillance | Configuration |
| np_cctv | Configuration |
| np_spy-pigeon | Configuration |
| np_screens | The resource's own README |