Skip to content

Staff ​

np_environmental uses no ACE. There are no add_ace lines and no IsPlayerAceAllowed calls. Staff rights are permission nodes decided by np_admin when it runs, and a short list in the config when it doesn't.

Permission nodes ​

Registered in np_admin's permission matrix under the category Environmental:

Node Label Grants
np_environmental.admin Environmental admin Everything below
np_environmental.director Environmental director The director screen (/envdirector): roll now, pause, spawn, teleport, remove and clear scenes
np_environmental.editor Environmental editor The template editor (/envadmin) and spawn points
np_environmental.cleanup Environmental clean-up /event cleanup clears any scene (no pay)

Grant them to an np_admin group or a single player in its Permissions page. Wildcards (np_environmental.*) and explicit denies are np_admin's. np_environmental.admin covers the other three.

Settings in np_admin ​

Resource settings → Environmental edits the director, scene radii, payout, citizen and clean-up values live. See Configuration → Editable in np_admin.

Staff tools ​

Under np_admin's Resource tools (in game):

Tool Node What it does
Roll the director now director A roll with the coin flip, like a real one
Pause the director director No rolls until resumed (stored, survives a restart)
Resume the director director Rolls again
Clear all scenes director Asks for confirmation. Live scenes are cleared as staff without pay, expired ones removed
Open the scene editor editor The template editor
Open the director director The director screen

Audit log ​

Every staff change goes to np_admin's audit log (resource np_environmental): director rolls (hit or miss, with the reason), pause / resume, rule changes, scene spawns, clears and removals, teleports, template and spawn point saves and deletes, board hand-overs, and citizens flagged for false reports. Staff get a notification when a citizen reaches Config.Citizen.flagAt false reports.

Without np_admin, the log goes to the np_discord channel in Config.Director.logChannel (when set and np_discord runs); staff notifications become toasts to the online staff.

Without np_admin ​

When np_admin is not running (or Config.Integrations.np_admin = false), a player counts as staff for every node when one of these says so:

  1. one of their FiveM identifiers is in Config.Admins;
  2. their framework group: Config.AdminGroups.esx against xPlayer.getGroup() (default admin, superadmin), Config.AdminGroups.qb against qb-core / qbx_core HasPermission (default admin, god);
  3. np_discord is started and they hold one of Config.AdminDiscordRoles (role ids or np_discord role names, cached for Config.AdminDiscordCacheSeconds).

The server console always passes. Standalone servers have no framework groups, so only Config.Admins and np_discord roles count.

lua
Config.Admins = { 'license:0123456789abcdef0123456789abcdef01234567', 'discord:123456789012345678' }
Config.AdminGroups = { esx = { 'admin', 'superadmin' }, qb = { 'admin', 'god' } }
Config.AdminDiscordRoles = { '123456789012345678', 'staff' }

np_environmental replaces the np_admin lib's default fallback with this list, so the convars np_admin_fallback / np_admin_fallback_groups are not read here.

Commands ​

Command Node
/envadmin np_environmental.editor
/envdirector np_environmental.director
/event cleanup np_environmental.cleanup for the staff clear (factions need no node)