np_admin
The staff system for your server. It brings its own permission system instead of ACE, one panel for the settings of every np_* script, one theme that every np_* UI follows, bans, warns and reports, spectate and noclip, value tracing for economy investigations, an audit log of everything staff do, and Discord role sync through np_discord. Staff tools stay locked until a staff member goes on duty.
- Version
- 0.1.0
- Frameworks
- ESX, qbx, qb, standalone
- Dependencies
- oxmysql
- Database
- Tables created on start
- Permissions
- Own groups and nodes. No ACE, nothing in
server.cfg - Inventory
- np_inventory, ox_inventory or the framework's
- Optional
- np_menu, np_discord, np_hud, screenshot-basic
- Keys
- F10 panel, F9 quick menu, F7 or Ctrl K palette
- Build
- Node 18+ once, for the NUI

In-game captures from a local ESX server at 1920×1080. Spectate, the ID tags, the developer menu and the trace views are taken from the NUI in the browser with mock data.
What's in it
Every action exists once. The panel, the quick menu, the palette and the chat commands all call the same server action, which checks the permission, duty and a rate limit and writes the audit entry.
Own permissions
- No ACE: no
add_ace, no principals, nothing inserver.cfg. - Groups with inheritance and priority. Dotted nodes with wildcards (
np_admin.players.*), and a deny always wins. - Limits per group, such as the longest ban. Owners from a convar.
Live settings
- Every np_* script registers its
Config. One panel, one form per resource. - Live, client reload and restart badges on every field, so staff know when a change applies.
- History with revert, export and import, masked secrets.
One theme for every script
- Pick the server's brand colour once. The HUD, menus, inventory, shops and every other np_* UI follow it live.
- Three strengths: accent, tiles or glass. Health, armour and error colours never change.
- Frosted glass or Liquid Glass as the server default. Players keep their own choice.
Moderation
- Online and offline players, notes, a watchlist and a history timeline.
- Warn, kick and ban on licence, Discord, Steam, FiveM, IP and hardware tokens.
- Ban codes like
NB-XXXX. Bans expire on their own and follow a player to new accounts.
Reports
- Players use
/reportand reply with/rr. - A queue with claim, reply, hand over and resolve. Y claims from the toast.
- The reporter's position, recent events and nearby players are attached.
Staff tools
- Spectate with free cam and live target info, noclip, godmode, invisible, overhead ID tags and teleports.
- Freeze, heal, revive, give items or money, set the job, open the inventory, take a screenshot.
Quick menu and palette
- The quick menu (F9) is the former np_menu dev menu, built from np_admin's actions.
- The palette (F7 or Ctrl K) finds players, actions and every setting:
bring 17,np_hud minimap.
Audit log
- Every staff action and setting change, with the old and new value.
- np_* scripts forward their own log entries. Filters by category, staff member, target and resource.
- Optional Discord channels through np_discord or webhooks.
Discord and duty
- Discord roles become groups and flags such as queue priority, live through np_discord. Two-way and ban sync are options.
- Off duty, staff play normally. Duty time is tracked.
A closer look
Permissions without ACE
Groups, nodes and members live in the database and are edited in the panel. Every np_* script checks its nodes through np_admin, so one matrix covers the whole server.
| Piece | How it works |
|---|---|
| Groups | superadmin, admin, mod, support, developer, vip and user to start with. Inheritance and priority, and a player can be in several |
| Nodes | Dotted strings like np_admin.bans.revoke or np_inventory.admin. Wildcards such as np_admin.players.*. An explicit deny beats an allow |
| Limits | Numbers per group: a moderator bans for up to 7 days, an admin permanently. Vehicle spawns per minute |
| Players | A single permission for one player, with an optional expiry |
| Owners | Identifiers in the convar np_admin_owners are always superadmin. The convar never reaches clients |
| Simulate | Pick a player and see what they can do, and where each permission comes from |

Resource settings
Resources register part of their Config. config.lua stays the default, np_admin stores only the overrides and writes them back into Config.

- Live: the script reads
Configeach time, so the change applies at once. - Client reload: players pick it up on their next init.
- Restart: read once at start. The panel offers the restart.
- History per setting with one-click revert, export and import to move settings from a dev server to live.
- Secrets stay on the server, masked, for staff with
np_admin.settings.secrets. Settings of stopped resources can be edited too.
One theme for every np_* script
Staff set the brand colour, strength and material under Resource settings → np_admin → Theme. Every np_* UI picks it up live, without a restart.

- Accent: bars, timers, progress fills and the selection take the brand colour.
- Tiles: every neutral icon tile too.
- Glass: a hint of the colour in every panel. Liquid Glass is one switch away.
- Meaning stays: health, armour, hunger and error colours never change, so players read every UI at a glance.
- Players keep their choice: a material picked in np_menu, np_shops or the inventory beats the server default. np_phone keeps its own theme.
Moderation
The player list and the profile side panel sit next to each other, so the list stays in view.
| Tool | What it does |
|---|---|
| Players | Online and offline, searched by name, server ID, licence, Discord, Steam or character name. Flags for warns, open reports and the watchlist |
| Notes and history | Staff-only notes, a watchlist and a timeline of joins, warns, kicks, bans and reports |
| Warn | Warnings that expire after a configurable time |
| Ban | Licence, Discord, Steam, FiveM, IP (optional) and hardware tokens. Reason templates, a duration up to the group's limit and an optional screenshot |
| Ban codes | NB-XXXX, shown to the player with your appeal link. When a banned player joins on a new account, the ban extends to the new identifiers |
| Permanent bans | Lifting them takes np_admin.bans.revoke, and an extra node can be required to set them |

Reports
Players open a report with /report and answer with /rr. Staff on duty get a toast and claim it with Y.

- Queue with open, mine and closed. Claim, reply, hand over and resolve.
- Context attached on its own: the reporter's position, their recent events and the players nearby.
- Canned replies and actions on the reporter: go to, bring, spectate, revive, heal.
- Categories, a cooldown and a maximum of open reports per player in
Config.Reports.
Staff tools
Every key can be rebound in the GTA settings, and every action also has a chat command.
| Tool | Opens with | What's in it |
|---|---|---|
| Staff panel | F10, /admin | Dashboard, players, reports, bans and warnings, audit log, world and server, resource settings, permissions and Discord sync |
| Quick menu | F9, /am | The former np_menu dev menu in np_menu's red staff skin: self, vehicle, world and player actions, plus the tools other resources register |
| Command palette | F7, Ctrl K | Players, actions and every registered setting. bring 17, np_hud minimap |
| Self | F2 noclip, F3 waypoint, F4 ID tags | Noclip with speed steps, godmode, invisible, overhead tags with the server ID only you see |
| Spectate | From a player or report | Previous and next player, free cam, live speed, health and recent events of the target |
| Vehicle and world | Panel or quick menu | Spawn, repair and tune. Weather and time, blackout, clear area, announcements, start, stop and restart resources |
| Commands | Chat | /sc staff chat, /announce, /goto, /bring, /kick, /warn, /ban, /unban, /duty |
Spectate, noclip and ID tags show a "Logged" pill to the staff member and always end up in the audit log.
Discord sync
With np_discord running, Discord roles map to groups and flags. Without it, np_admin works the same, just without the sync.

- Roles to groups: Moderator becomes
mod, plus flags such as queue priority or streamer. - Live: role changes arrive through np_discord's gateway.
- Two-way (optional): granting a group in game adds the Discord role.
- Ban sync (optional), and a role you can require to join.
Set it up
Compatibility
oxmysql is the only requirement. The framework, the inventory and every optional resource are detected while the server runs.
| Framework | What np_admin uses it for |
|---|---|
| es_extended | Set job and grade, give money to an account, revive through esx_ambulancejob. Other np_* scripts fall back to the ESX groups admin and superadmin while np_admin is stopped |
| qbx_core | Set job and grade, give money, revive through qbx_medical |
| qb-core | Set job and grade, give money, revive through the hospital event |
| Standalone | Every panel, permission, ban, report and tool. No set job or give money, because there is no framework to hold them |
| Kind | Supported |
|---|---|
| Inventory | np_inventory or ox_inventory, to give items and open a player's inventory |
| Menus | np_menu draws the quick menu (F9) and adds the Admin tile to its F1 grid |
| Discord | np_discord for role sync and log channels |
| Toasts | np_hud for staff notifications |
| Screenshots | screenshot-basic |
| Integrated | np_inventory, np_character, np_tattoos, np_payments, np_identification, np_screens, np_manufacturing, np_phone, np_hud, np_helicam, np_discord, np_npchandler, np_prophandler, np_net, np_vending, np_metal-scanner, np_surveillance, np_cctv, np_spy-pigeon, np_flightradar and np_menu register their permissions, settings, logs and staff tools |
Installation
The tables are created on start, and sql/np_admin.sql has a copy. Load order doesn't matter for the resources that integrate.
- Put the resource in
resources/asnp_adminand build the NUI once (web/distis not committed):cd np_admin/web && npm ci && npm run build - Add yourself as an owner and start it. Owners are always superadmin, and the convar never reaches clients:
set np_admin_owners "license:0123…,discord:1759…" ensure oxmysql ensure np_discord # optional ensure np_menu # optional, quick menu ensure np_admin - Join, press F10 and go on duty with the duty pill.
- Grant groups in Permissions, or from the server console:
npadmin grant <id|identifier> admin
Most of shared/config.lua can also be changed live under Resource settings → np_admin.
For your own scripts
Vendor lib/np_admin.lua into your resource. It keeps working on servers without np_admin, and registers again whenever np_admin restarts. Building an addon of another np_* resource? np_admin also ships lib/np_addon.lua, the addon contract: the addon attaches when its host is ready and again after every restart, and the host cleans up after it on its own.
-- one permission check instead of IsPlayerAceAllowed
if not npAdmin.can(source, 'my_res.admin') then return end
-- show your nodes with labels in the permission matrix
npAdmin.permissions({
{ node = 'my_res.admin', label = 'My resource admin', category = 'My resource' },
})
-- a staff action in the panel, the quick menu and the Ctrl K palette
npAdmin.action({
name = 'my_res.reset', label = 'Reset progress', icon = 'rotate-left',
perm = 'my_res.admin', target = 'player',
handler = function(src, target) reset(target) return true end,
})
-- forward your log entries into the audit log
npAdmin.log('my_res', { action = 'reset', actor = source, message = 'Progress reset' })npAdmin.settingsputs part of yourConfigin the settings panel: 13 field types from toggles and sliders to keybinds, coordinates and secrets.- Without np_admin,
npAdmin.canallows the console, identifiers innp_admin_fallbackand on ESX the groups innp_admin_fallback_groups.
Follow recorded value. Review recovery.
Trace brings Flows, Investigate, Alerts and Economy into the staff panel: filter money and item moves, follow a saved case through its graph, inspect supported asset deals, and review duplicate sessions, unexplained balances and mint spikes. A recipient may have made an ordinary sale. A connection or alert is not proof of guilt; recovery and moderation require separate judgement.
Optional reporting
- np_banking reports committed ledger moves and cash/bank conversions; np_payments supplies payment context; np_inventory reports item moves and origins. Other resources use the optional vendored lib after a move succeeds. While np_admin is stopped, reporting returns false and missing history is not replayed.
Setup and recovery
- Setup lives in Resource settings → np_admin → Tracing. Grant
np_admin.trace.viewfor investigations andnp_admin.trace.clawbackseparately for recovery. Preview selected holders and available asset actions, then confirm with a reason while on duty. Each attempt is logged; partial cases can retry unfinished actions. Known current balances cap takes, but unknown balances and unsupported holders can prevent recovery.
Coverage and limits
- Raw flows default to 90 days; a run supports up to 50 seeds, 10 hops and 200,000 rows. Truncated cases, expired history, missing integrations and attribution assumptions limit the result. Shops, fuel stations and vending machines have business handlers; farming co-ops provide owner lookup only. Generic vehicle, garage and housing ownership handlers are not implemented by this integration. Revert or lock requires the owning resource's corresponding handler.
Development status
- The trace core is still receiving final correctness fixes. Validate your framework and resource versions on a test server before live recovery. Gallery screenshots show browser dev fixtures.
Deutsch: Wertflüsse, Einrichtung und Grenzen
Trace zeigt Flows, Ermittlungen mit gespeicherten Fällen und Graph, Warnungen und Wirtschaftsstatistik. np_banking meldet Ledger-Bewegungen und Bargeld/Bank-Umtausch, np_payments ergänzt Zahlungskontext und np_inventory meldet Items samt Herkunft. Die Integration bleibt optional; während np_admin gestoppt ist, wird fehlende Historie nicht nachgetragen.
Einrichtung unter Resource settings → np_admin → Tracing. Für Ermittlungen ist np_admin.trace.view nötig, für Rücknahmen separat np_admin.trace.clawbackund Dienststatus. Erst Halter und verfügbare Asset-Aktionen in der Vorschau prüfen, dann mit Grund bestätigen. Versuche werden protokolliert; offene Aktionen teilweise abgeschlossener Fälle können wiederholt werden. Unbekannte Bestände oder nicht unterstützte Halter begrenzen die Rücknahme.
Standard: 90 Tage Einzelhistorie, maximal 50 Start-Halter, 10 Hops und 200.000 Flows je Lauf. Fehlende Integrationen, gekürzte Fälle und Zuordnungsannahmen begrenzen die Aussage. Geschäfts-Handler existieren für Shops, Tankstellen und Automaten; Farming-Co-ops bieten nur Eigentümerabfrage. Generische Fahrzeug-, Garagen- und Housing-Handler sind hier nicht implementiert. Eine Verbindung beweist keine Schuld: Unschuldige Verkäufer und Empfänger können betroffen sein. Rücknahme und Moderation getrennt prüfen. Der Trace-Kern erhält noch abschließende Korrekturen; vor Live-Rücknahmen auf einem Testserver prüfen. Die Galerie zeigt Browser-Testdaten.
Questions
Does it need ACE?
No. np_admin has its own groups, permission nodes and members in the database, edited in the panel. There are no add_ace lines, no principals and nothing in server.cfg apart from the owners convar.
Do my np_* scripts work without it?
Yes, np_admin is optional. Each np_* script ships the small np_admin lib. Without np_admin, its admin commands are open to the server console, the identifiers in np_admin_fallback and on ESX the groups in np_admin_fallback_groups (default admin,superadmin). Their settings stay in config.lua.
Can it use our Discord roles?
Yes, through np_discord. Roles map to groups and flags such as queue priority, changes arrive live, and two-way sync and ban sync are options. Without np_discord, groups are granted in the panel or the console.
Where did the np_menu dev menu go?
Into np_admin. It is the quick menu on F9, built from np_admin's actions and permissions in np_menu's staff skin. The Admin tile on np_menu's F1 grid opens it, and /devmenu still works while np_admin runs.
Who watches the staff?
The audit log. Every staff action and setting change is written with who, what, whom and when. Spectate, noclip and ID tags show a "Logged" pill, ban lengths are capped per group, and off-duty staff can't use the tools.
Which framework does it need?
None. ESX comes first, qbx and qb work the same, and standalone runs every panel and tool. The framework only adds set job, give money and revive.
Works well with

Build once, add your owners, press F10.
Installation, every permission node and the integration guide are in the docs.

