Skip to content

Permissions ​

np_admin has its own permission system. It does not use FiveM ACE: no add_ace, no add_principal, no IsPlayerAceAllowed. Groups, members and rules live in the database and are edited in the panel (Permissions) or from the server console.

Permissions

Model ​

Part
Nodes Dotted strings such as np_admin.players.ban or np_inventory.admin. Resources register their nodes, so the matrix shows labels and categories
Groups Name, label, priority, colour, icon, an optional parent (inherits), limits and a rule map { [node] = true | false }
Members A player (by identifier) in a group, from manual, discord or config, optionally until a date. A player can be in several groups
Per-player overrides Allow or deny one node for one player, optionally temporary (console npadmin allow|deny|clear)
Owners The identifiers in np_admin_owners (or Config.Owners). Always superadmin (*), can't be removed in the panel

Resolving a node ​

  1. A group's own rules override the rules it inherits.
  2. Across all of a player's groups, the allows are merged, but an explicit deny on a node always wins.
  3. Per-player overrides replace the group result for their node.
  4. The most specific rule decides. For a.b.c np_admin checks a.b.c, then a.b.*, then a.*, then *.

The server console (src 0) and owners are always allowed. Permissions are resolved on join, cached per player and resolved again when a group, a membership or a Discord role changes. The client only receives its own rules and uses them to show or hide UI; the server checks every action again.

Wildcards and deny ​

np_admin.players.*      every player action
np_admin.*              everything in np_admin
np_inventory.*          every np_inventory node
*                       everything (superadmin)

The seeded admin group, for example, holds np_admin.* and explicitly denies np_admin.perms.manage, np_admin.settings.secrets and np_admin.discord.manage. Click a cell in the matrix to cycle through granted, not set and explicit deny. Nodes that aren't in the matrix (wildcards, nodes of stopped resources) are added as chips under Wildcards & foreign nodes.

Limits ​

Limits are numbers per group. The highest-priority group that defines a limit wins; a missing limit means unlimited.

Limit
ban.max_duration Longest ban in seconds. 0 = permanent bans allowed. Presets above it are hidden in the ban dialog
vehicle.spawn_per_min Vehicle spawns per minute (default Config.Vehicles.spawnPerMinDefault)

Escalation guards ​

  • Only owners and the console may edit a group ranked above their own top group, add members to it or grant nodes they don't hold themselves.
  • Staff can't ban, kick, warn, freeze or bring someone ranked above them. Owners can only be handled from the console.

Panel ​

Tab
Groups Groups sorted by priority, the permission matrix per category, group settings (label, inherits, priority, colour, icon, limits), wildcard chips and the mapped Discord roles
Players Members per group with source and expiry. Add a member by server id or identifier, optionally for a duration
Simulate Pick a player and see every node with its result and where it came from (owner, override:<rule> or group:<name> (<rule>)), plus their groups and limits. Resolved exactly like the server does it

Core nodes ​

Node Grants
np_admin.panel Open the staff panel, staff chat
np_admin.duty Go on / off duty
np_admin.players.view View players
np_admin.players.notes Notes and watchlist
np_admin.players.teleport Goto, bring, send back
np_admin.players.spectate Spectate
np_admin.players.freeze Freeze
np_admin.players.heal Heal and revive
np_admin.players.kill Kill
np_admin.players.kick Kick
np_admin.players.warn Warn
np_admin.players.ban Ban, up to the group limit
np_admin.players.screenshot Screenshot
np_admin.players.inventory Give item, open and clear inventories
np_admin.players.money Give and take money
np_admin.players.job Set job
np_admin.reports.view View reports
np_admin.reports.handle Claim, reply, hand over, resolve
np_admin.bans.view View bans and warns
np_admin.bans.revoke Revoke bans
np_admin.bans.permanent Permanent bans, when Config.Moderation.permanentNeedsNode is on (the "co-sign")
np_admin.logs.view View the audit log
np_admin.self.noclip / .godmode / .invisible / .ids Noclip, godmode, invisible, overhead ID tags
np_admin.vehicle.spawn Spawn vehicles
np_admin.vehicle.manage Repair, clean, flip, tune, plate, delete
np_admin.world.env Weather, time, freeze time, blackout
np_admin.world.clear Clear area
np_admin.world.announce Announcements
np_admin.server.resources Start, stop and restart resources
np_admin.server.info Server info
np_admin.dev.tools Developer tools (coordinates, entity inspector)
np_admin.settings.view View resource settings. Scoped: np_admin.settings.view.<resource>
np_admin.settings.edit Edit resource settings. Scoped: np_admin.settings.edit.<resource>
np_admin.settings.secrets Read and edit secret settings
np_admin.perms.view View permissions, simulate
np_admin.perms.manage Manage groups and members
np_admin.discord.view View Discord sync
np_admin.discord.manage Manage Discord mappings, sync

A player counts as staff when they hold any np_admin.* node. Staff-only RPCs and chat commands refuse everyone else.

Other resources add their own nodes (for example np_inventory.admin, np_helicam.air, np_flightradar.admin). Each resource's documentation lists them; see Resources that integrate.

Console ​

npadmin works from the server console only. It is how you bootstrap the first admins without any ACE line.

npadmin grant <id|identifier> <group> [minutes]           add to a group (optionally temporary)
npadmin revoke <id|identifier> <group>                    remove from a group
npadmin groups                                            list groups (priority, inherits, label)
npadmin members [group]                                   list members (source, expiry)
npadmin allow|deny|clear <id|identifier> <node> [minutes] per-player override
npadmin perms <id|identifier>                             resolved groups and rules
npadmin ban <id|identifier> <30m|12h|7d|perm> <reason>    ban
npadmin unban <NB-XXXX|id> [reason]                       revoke a ban

<id> is an online server id; any identifier (license:…, discord:…) works for offline players.

Without np_admin ​

Resources that integrate keep working when np_admin isn't running. Their vendored lib then allows only the console, the identifiers in the convar np_admin_fallback and, on es_extended, the groups in np_admin_fallback_groups (default admin,superadmin):

cfg
set np_admin_fallback "license:abc…,discord:123…"
set np_admin_fallback_groups "admin,superadmin"

See Permissions & np_admin.