Skip to content

Staff editor & np_admin ​

np_faction vendors np_admin's lib byte-identical in bridge/np_admin.lua. np_admin is never a dependency: with it, its permission nodes decide who is staff, the settings land on its Resource settings page and every faction action goes to its audit log. Without it, Config.Admins (server-only: server/config/admins.lua or the convar np_faction_admins), the framework's admin groups and np_discord roles decide. There is no ACE anywhere.

The staff editor ​

/factionadmin (Config.Staff.command) or np_admin's resource tool Faction editor opens the editor. Only the header bar and the staff tile are red glass; the window itself is the normal grey glass.

The create wizard at step 2, Framework link

Part What staff do there
Factions Every faction with type, link, members, on duty, source (file, in game, auto) and sync state (in sync, drift, own). Filter by type or auto-mirrored. Edit, reload, Reset to file, dissolve
Create / edit wizard Six steps: Identity (name, short tag, type, tint, glyph), Framework link (mirror, np_faction only, create in framework; the detected framework and siblings; the grade import), Ranks, Accounts (np_banking accounts per purpose and the society migration), Places, Features
Audit Every faction action, filterable, Config.Staff.auditPage entries per page
Moderation Look up a player, set a job (also clubs and an extra multi-job slot), force off duty, remove a job, faction money corrections and freezes

Staff: the faction list

Mirroring a framework job in the wizard claims its automatic mirror and adopts every holder of the job: online players, on ESX also the users table; qb and qbx adopt the rest at login. A create faction is built with its ladder first and then linked, so the framework gets the job in one write. Editing an automatic mirror makes it a faction of its own; Reset to file returns a file faction to its file.

Permissions ​

Staff nodes, granted in np_admin's Permissions view. np_faction.* grants all of them.

Node Allows
np_faction.editor The staff editor: create, edit, reset and dissolve factions, place every place type anywhere without a budget, add any fleet model (the faction setting fleetModels widens a faction's allowlist), stash sizes and clerk models beyond the boss limits
np_faction.setjob Set a player's job and grade, also clubs and an extra slot (np_admin's Set job goes through np_faction too)
np_faction.finance Faction money: corrections, freezes, the society migration, account info. Also everything that can create money or loosen the bank's guards: paying a faction from framework money (paySource = 'server'), the bank rules payroll and govGrant, a two-signature threshold of 0 or outside Config.Bank.approvals.minThreshold .. maxThreshold
np_faction.audit Read the faction audit log, a player's jobs and faction balances
np_faction.moderate Force a player off duty, remove a membership

Without np_admin a player is staff (every node) when one of these says so: their identifier is in Config.Admins, their framework group is in Config.AdminGroups (ESX admin, superadmin; qb / qbx admin, god), or np_discord runs and they hold one of Config.AdminDiscordRoles. Config.Admins is filled on the server only, from server/config/admins.lua and the convar np_faction_admins (Configuration); the shared config files reach every client, so the list is not kept there.

Put np_admin's staff roles on Config.Discord.blockedRoles: no faction's role map can then hand them out (Configuration → Discord).

Members' rights inside a faction are not staff nodes: they are the faction's own permission nodes per grade (Configuration → Permission nodes), edited by the faction's command in the HQ Ranks tab or by staff in the editor.

Staff tools ​

Registered in np_admin's Resource tools (and again whenever np_admin restarts or the faction list changes):

Tool Node Does
np_faction.setjob np_faction.setjob Job and grade for a player, online or offline
np_faction.jobs np_faction.setjob or .audit Lists a player's jobs (multi-job and clubs)
np_faction.offduty np_faction.moderate Clocks a player out
np_faction.removejob np_faction.moderate Removes one membership
np_faction.editor np_faction.editor Opens the staff editor
np_faction.places np_faction.editor The placement tool for any faction: every place type, no budget
np_faction.bankadjust np_faction.finance Corrects a faction account (may go below zero)
np_faction.bankfreeze np_faction.finance Freezes or unfreezes a faction's money
np_faction.bankmigrate np_faction.finance Faction money: migrate society money (Installation)
np_faction.bankinfo np_faction.finance or .audit Accounts, provider and balances of a faction

np_admin's own player view shows the job from np_faction (GetJob) and lists every other held job; its Set job action calls np_faction's SetJob, so link none factions and multi-job slots work from there, and falls back to the framework for jobs np_faction does not know.

Settings ​

One page Factions (icon people-group) under Resource settings, with a category per module: General, Jobs, Factions, Applications, Armory, Bank, Board, Discord, Duty and payroll, Fleet, Lockers, Phone app, Places, Staff. The fields and what they change are on Configuration. fxmanifest.lua declares the settings file and every config file, so np_admin lists the page while np_faction is stopped.

Faction HQ: the faction's own settings tab

The faction's own Settings tab in the HQ (identity, features, probation, quota, hiring) is for the faction's command, limited by Config.HqSettings; staff with np_faction.editor may change everything there. Settings that can create money or reach outside the faction stay with staff: server-paid wages, the payroll and grant rules, thresholds outside the allowed range and extra fleet models. Discord roles in the faction settings must be on the allow list for everybody, staff included.

Audit log ​

Every faction action is written twice: to np_faction's own audit (faction_audit, kept Config.Audit.keepDays, visible to members with audit.view and in the staff editor) and to np_admin's log (category np_faction). Staff paths and changes adopted from the framework are logged with their cause.

Theme ​

The lib forwards np_admin's server theme (brand colour, strength, frosted or Liquid Glass) to the NUI and the phone app.