All products

np_faction

Jobs and factions on top of the framework job. Hold several jobs, clock in and get paid for the hours you worked, rank up with real permissions, run the faction's money in np_banking, hand out the armory and the patrol cars, and recruit through applications. The framework keeps the active job, so every other script keeps working.

v0.1.0ESX · qbx · qb · standaloneRequires oxmysqlEnglish · German
Price TBAStore link follows at release
Installation guideDocumentation
Version
0.1.0
Frameworks
ESX first, qbx, qb, standalone with its own job state
Inventory
np_inventory first, then ox_inventory or qb-inventory, for the armory, stashes and lockers
Faction money
np_banking first, else a built-in ledger that moves into np_banking once it runs
Database
oxmysql, tables created and migrated on start
Replaces
esx_addonaccount, esx_society and qb-management, with shims and a one-time money migration
Optional
np_admin, np_payments, np_phone, np_hud, np_menu, np_clothing, np_character, np_identification, np_discord and more, each with a fallback
Build
The UI once (Vite and React), or a release zip that already contains it: the Faction HQ, the phone app and the staff editor, fitted to any screen from 720p to ultrawide
Faction HQ overview of the LSPD: 11 on duty of 42 members, the balance of $1,398,850 in three np_banking accounts, your week at 11.2 of 10 hours, a pinned briefing on the board, the on-duty list with callsigns and the quick actions
Faction HQ overview of the LSPD: 11 on duty of 42 members, the balance of $1,398,850 in three np_banking accounts, your week at 11.2 of 10 hours, a pinned briefing on the board, the on-duty list with callsigns and the quick actions

Rendered from the NUI in the browser with mock data at 1920 × 1080. The world shots use a placeholder skyline, not a game scene.

What's in it

The framework gives you one job and a grade. np_faction adds everything a police department, a hospital, a garage or a gun club runs on, and it can be set up in files or in game.

Factions on top of jobs

  • Four types (government, business, organisation, club) with templates for ranks, nodes and features.
  • Mirror a framework job, create one in ESX jobs / qbx / qb, or none for clubs that never touch the job.
  • Every framework job is a faction from the first start; staff tune it later.

Multi-job and members

  • Up to three linked jobs plus unlimited clubs; switch the active one with a cooldown, never on duty.
  • Hire (as an offer if you like), fire, promote with a hierarchy guard, online and offline.
  • Probation, leave, suspension, callsigns, command notes and a discipline record.

Ranks and permission nodes

  • Dotted nodes per grade: members.hire, bank.withdraw with a daily limit, assets.garage.air.
  • Certifications (FTO, K9, Air-1, SWAT) add nodes per member, whatever their grade.
  • A permission matrix editor and grade sync with the framework, both ways.

Duty and payroll

  • A shift log for every clock-in, from a duty point, the phone, np_menu or the framework.
  • AFK, zone, uniform and max-length rules, units, weekly quotas and a coverage heatmap.
  • Pay per hour, salary, task or a mix from the faction's payroll account, one paid shift at a time, with a salary cap.

Faction money

  • Accounts per purpose (operating, payroll, evidence, budgets) in np_banking or a built-in ledger.
  • Daily budgets per rank and two signatures above a threshold, also for other scripts' boss menus; auto rules for upkeep and grants.
  • Invoices and fines through np_payments; shims for esx_society and qb-management.

Places, armory and fleet

  • Duty points, lockers, armories, stashes, evidence, boss offices, garages and helipads.
  • Loadouts per grade with registered serials, taken back at clock-out; outfits in the locker.
  • Faction cars from a model allowlist, with plates, take-home cars, impound, and capped repair and fuel bills paid by the faction.

Recruiting and the board

  • Versioned application forms, automatic checks (playtime, licences, age, your MDT's warrants).
  • A pipeline with notes, scores, votes, interview slots and trial shifts; open jobs hire on the spot.
  • Announcements with pins, expiry and read receipts, plus automatic posts for hires and promotions.

Phone app

  • Faction in np_phone's App Store: home, roster, board, shifts, the jobs board and the bank.
  • The running shift as a Live Activity in the Dynamic Island, with an off-duty button.
  • Without np_phone the same pages open as a tablet: command, key or item.

Staff (np_admin)

  • The staff editor: every faction, a six-step create wizard, the audit log, moderation.
  • The nodes np_faction.editor, .setjob, .finance, .audit and .moderate, live settings, staff tools. No ACE.
  • The Nimbus UI follows the server theme. English and German.

A closer look

The framework keeps the active job

np_faction writes the active job through the framework, so esx:setJob and QBCore:Server:OnJobUpdate keep firing for every script that only knows the framework.

LinkWhat happens
MirrorUses an existing job. The framework owns the grade list and labels, np_faction adds nodes, salary and certifications. Every holder of the job is adopted
Createnp_faction writes its ladder into the framework: ESX jobs / job_grades, qbx and qb shared jobs
NoneClubs, unions and organisations: ranks, a board and an account, never a framework job
AutoAny job without a faction file is mirrored from a template at start, so nothing is missing
Ranks and permissions: the grade ladder, the permission matrix, framework sync and certifications

Clocked hours, paid from the faction

Every duty change opens or closes a shift, whatever caused it. The payroll pays what the shifts earned.

Duty: on duty by unit, the coverage heatmap, hours this week and the duty rules
  • Rules: AFK pauses the clock and clocks you out, duty only inside a zone or in uniform, a maximum shift length. Each faction picks its own. Everyone logs in off duty, and a duty switch from another script has to pass the same rules.
  • Pay models: per hour (minus AFK) at the grade's rate, a salary, per task that other scripts credit with PayTask, or a mix. On duty in two factions pays one shift at a time.
  • Planning: weekly quotas, a coverage goal per hour and a shift planner with sign-ups and np_phone calendar reminders.
  • Logged: clock-in and clock-out to np_discord, grade and on-duty roles, the job chip and duty dot on np_hud.

Faction money in np_banking

The operating account is np_banking's society account of the job, so np_banking, np_payments and np_faction all reach the same money.

Bank: operating, payroll and evidence accounts, approvals, budgets per rank and auto rules
  • Accounts per purpose: operating, payroll, an evidence fund, budgets. Without np_banking a built-in ledger keeps them and hands them over later.
  • Control: daily budgets per rank, a second signature above a threshold, freezes and corrections by staff, every move in the audit. Boss menus of other scripts go through the same checks.
  • Auto rules: salaries from payroll, a share of every invoice, monthly upkeep, a government grant and a payroll top-up. Rules that create money stay with staff.
  • Old money: the society_<job> and management_funds balances move once into the operating account; shims keep the old scripts working.

The Faction app

A member's side of the faction in np_phone. The same pages open as a tablet when np_phone is not running.

Faction app home: on duty for 2 h 14 m as Sergeant II, quick actions, the board, this week against the quota and the next paycheckFaction app shifts: the duty switch with units, hours this week, the next paycheck and planned shifts to sign up for
  • Duty: clock in and pick a unit; the shift runs as a Live Activity in the Dynamic Island.
  • Roster and board: who is on duty, callsigns, announcements with a badge on the app icon.
  • Jobs: open jobs hire on the spot, whitelisted ones take an application; interviews land in the calendar.
  • Bank: balances, deposits and withdrawals within your budget, approvals to sign.

The staff editor

Create a faction in six steps, or tune one from a file. The editor overrides the file; reset to file brings it back.

The create wizard at step 2: mirror a framework job, np_faction only or create in framework, the grades imported as ranks and the society money migration
The faction list with type, framework link, members, on duty, source and sync state

Multi-job everywhere

The np_* resources ask np_faction while it runs and fall back to the framework when it does not. A sheriff who is also a mechanic counts as both, in every resource.

ResourceFollows np_faction for
np_banking · np_paymentsJob account roles from the nodes bank.manage and bank.spend, the accounts of every held job, boss checks, terminals and approvals
np_hud · np_menu · np_phoneThe job chip with a duty dot, the F1 duty switch, the Faction app and np_phone's Jobs app
np_admin · np_discordSet job for clubs and extra slots, every held job in the player view, roles for every job
np_inventory · np_clothing · np_identification · np_characterGroup checks, faction lockers and uniforms, police and badge checks, appearance unlocks
np_cctv · np_surveillance · np_helicam · np_flightradar · np_spy-pigeon · np_cellnetAccess roles and networks from any held job, on duty per job
np_shops · np_vending · np_fuel · np_mechanic · np_tattoos · np_manufacturingStaff and owner checks over every job, society money through the faction account
np_drugs · np_gangs · np_prison · np_environmental · np_farming · np_fishingPolice counts, blocked jobs at Lester's, guards and lawyers, responders, rangers

Plus np_passwords, np_screens, np_metal-scanner, np_npchandler, np_prophandler, np_billiards, np_darts and np_golf. The full list is in the integration docs.

Set it up

Compatibility

oxmysql is the only hard dependency. Everything else is detected at start and has a fallback. No ACE anywhere.

AreaSupported
Frameworkes_extended, then qbx_core, qb-core or standalone (np_faction keeps the job itself)
Inventorynp_inventory, then ox_inventory or qb-inventory; without one no armory, stashes or lockers
Moneynp_banking, else the built-in ledger; np_payments for invoices and terminals
Databaseoxmysql (required)
Staffnp_admin, else an identifier list, the framework's admin groups and np_discord roles
Old scriptsShims for esx_addonaccount, esx_society and qb-management
np_* siblingsnp_phone, np_hud, np_menu, np_clothing, np_character, np_identification, np_discord, np_gangs, np_environmental, np_cctv, np_npchandler, np_prophandler and np_fuel

Installation

Build the UI once (or use a release zip, which ships it), then start it after the framework, the inventory and np_banking. The tables are created at start.

  1. Put the resource in resources/ as np_faction and build the UI (a release zip already has web/dist; without it no screen opens):
    cd np_faction/web && npm ci && npm run build
  2. Start it after its siblings, before the scripts that read jobs:
    ensure oxmysql
    ensure es_extended     # or qbx_core / qb-core
    ensure np_inventory    # or ox_inventory / qb-inventory
    ensure np_banking      # optional: faction accounts
    ensure np_admin        # optional: staff editor
    ensure np_faction
  3. The shipped faction files mirror police, ambulance, mechanic and a gun club. Every other job is mirrored automatically; make it a faction of its own in /factionadmin.
  4. Turn off one paycheck: the framework's own, or np_faction's payroll with Config.Duty.payroll.enabled = false.
  5. With np_admin, grant np_faction.editor, .setjob, .finance, .audit and .moderate. Without it, the identifiers in server/config/admins.lua (or the convar np_faction_admins) and the framework's admin groups are staff.
  6. In game, open /faction as a member and place the duty points, lockers and garages your stations need.

From esx_society or qb-management

The old society money moves once into the faction's operating account, and small shims answer the old calls, so older scripts keep working without an edit.

  1. Move the money: np_admin action Faction money: migrate society money, or Config.Bank.migrate = 'auto'. It reads addon_account_data and management_funds directly.
  2. Remove esx_addonaccount, esx_society or qb-management, copy the shims from compat/ and ensure them after np_faction.
  3. Already importing in np_banking (Config.Accounts.esxSociety = 'migrate')? Run only one import: set Config.Bank.bankingMigrates = true in np_faction. It also skips the ESX source on its own once np_banking has imported.
  4. The boss menu's withdraw and deposit go through np_faction's nodes, daily budget, two signatures and a cooldown; stashes replace esx_datastore.

For your own scripts

Check GetResourceState('np_faction') at call time and fall back to the framework. The job shape has both key spellings, so ESX and qb code reads it unchanged.

-- server: police or sheriff, sergeant+, on duty, in any held job
local ok, job = exports.np_faction:HasJob(src, { police = 4, sheriff = 4 }, nil, true)

-- a permission node with its daily limit
local can, limit = exports.np_faction:Can(src, 'police', 'bank.spend')

-- faction money (np_banking or the ledger)
exports.np_faction:AddMoney('mechanic', 450, 'Tow job')

-- pay a task to the running shift
exports.np_faction:registerPayTask('tow', { label = 'Tow', amount = 150, type = 'business' })
exports.np_faction:PayTask(src, 'mechanic', 'tow')

AddEventHandler('np_faction:jobChanged', function(src, job, old) end)

Also GetJobs, GetOnDuty, SetDuty, Hire, SetJob, GetMembers, PostBoard, GetFleetVehicle, hooks such as beforeHire and applicationCheck, place types and nodes of your own, and the npFaction state bag on the client.

Questions

Do my other scripts still work?

Yes. The active job is a normal framework job, written with ESX setJob, qbx's job groups or qb SetJob, so every script that reads the framework job sees it. Job changes those scripts make are adopted into np_faction's roster; their duty switches pass np_faction's rules.

Do I have to set up every job first?

No. Every framework job is mirrored automatically at the first start with a template for its type. Make it a faction of its own in the staff editor when you want more than the defaults.

Do I need np_banking?

No, but it is the first target. Without it np_faction keeps the faction money in its own ledger and moves the balances into np_banking once you add it.

What happens to esx_society and my society money?

The balances move once into the faction's operating account, and the shims in compat/ answer esx_addonaccount, esx_society and qb-management calls. If np_banking already imports the ESX societies, run only one of the two imports.

Who pays the salaries?

The faction's payroll account, on a weekly, daily or interval timer, by hours, salary or task. Paying from server money instead is a staff-only setting. The frameworks pay their own paycheck too: switch one of the two off.

Does it use ACE permissions?

No. Staff rights are np_admin permission nodes (or an identifier list, framework groups and np_discord roles without it), and members' rights are the faction's own nodes per grade.

Can a gang be a faction?

An organisation faction can be hidden and stays off the jobs board. Street gangs with turfs and Lester's trial are np_gangs; government faction members can be kept from founding one.

Works well with

Ensure it after np_banking, and every job becomes a faction.

Installation, every config key and every export are in the docs.

Install np_faction