All products

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.

v0.1.0ESX · qbx · qb · standaloneNo ACERequires oxmysql
Price TBAStore link follows at release
Installation guideDocumentation
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
Dashboard: players online, open reports, server and Discord sync tiles, the live activity feed with filters, quick actions and the staff online with their group
Dashboard: players online, open reports, server and Discord sync tiles, the live activity feed with filters, quick actions and the staff online with their group

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 in server.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 /report and 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.

PieceHow it works
Groupssuperadmin, admin, mod, support, developer, vip and user to start with. Inheritance and priority, and a player can be in several
NodesDotted strings like np_admin.bans.revoke or np_inventory.admin. Wildcards such as np_admin.players.*. An explicit deny beats an allow
LimitsNumbers per group: a moderator bans for up to 7 days, an admin permanently. Vehicle spawns per minute
PlayersA single permission for one player, with an optional expiry
OwnersIdentifiers in the convar np_admin_owners are always superadmin. The convar never reaches clients
SimulatePick a player and see what they can do, and where each permission comes from
The permission matrix for the Moderator group: granted, inherited and denied cells per node, Discord roles and limits

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.

np_hud's minimap settings in the Resource settings page, with one unsaved change and a save bar
  • Live: the script reads Config each 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.

np_admin with a blue brand colour and the tiles strength: the navigation and resource tiles turn blue
  • 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.

ToolWhat it does
PlayersOnline and offline, searched by name, server ID, licence, Discord, Steam or character name. Flags for warns, open reports and the watchlist
Notes and historyStaff-only notes, a watchlist and a timeline of joins, warns, kicks, bans and reports
WarnWarnings that expire after a configurable time
BanLicence, Discord, Steam, FiveM, IP (optional) and hardware tokens. Reason templates, a duration up to the group's limit and an optional screenshot
Ban codesNB-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 bansLifting them takes np_admin.bans.revoke, and an extra node can be required to set them
Banning a player: reason template, duration, message, screenshot and every identifier plus hardware tokens

Reports

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

A claimed report: the chat with the reporter, canned replies, go to, bring, spectate and revive, and the attached context
  • 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.

ToolOpens withWhat's in it
Staff panelF10, /adminDashboard, players, reports, bans and warnings, audit log, world and server, resource settings, permissions and Discord sync
Quick menuF9, /amThe 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 paletteF7, Ctrl KPlayers, actions and every registered setting. bring 17, np_hud minimap
SelfF2 noclip, F3 waypoint, F4 ID tagsNoclip with speed steps, godmode, invisible, overhead tags with the server ID only you see
SpectateFrom a player or reportPrevious and next player, free cam, live speed, health and recent events of the target
Vehicle and worldPanel or quick menuSpawn, repair and tune. Weather and time, blackout, clear area, announcements, start, stop and restart resources
CommandsChat/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.

Discord sync: bot online, two-way direction, required role and live updates, and the guild roles mapped to groups and flags
  • 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.

FrameworkWhat np_admin uses it for
es_extendedSet 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_coreSet job and grade, give money, revive through qbx_medical
qb-coreSet job and grade, give money, revive through the hospital event
StandaloneEvery panel, permission, ban, report and tool. No set job or give money, because there is no framework to hold them
KindSupported
Inventorynp_inventory or ox_inventory, to give items and open a player's inventory
Menusnp_menu draws the quick menu (F9) and adds the Admin tile to its F1 grid
Discordnp_discord for role sync and log channels
Toastsnp_hud for staff notifications
Screenshotsscreenshot-basic
Integratednp_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.

  1. Put the resource in resources/ as np_admin and build the NUI once (web/dist is not committed):
    cd np_admin/web && npm ci && npm run build
  2. 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
  3. Join, press F10 and go on duty with the duty pill.
  4. 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.settings puts part of your Config in the settings panel: 13 field types from toggles and sliders to keybinds, coordinates and secrets.
  • Without np_admin, npAdmin.can allows the console, identifiers in np_admin_fallback and on ESX the groups in np_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.view for investigations and np_admin.trace.clawback separately 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.

Install np_admin