np_jobs v0.1.0 ​
np_jobs is the shared host for job capabilities. It resolves whether a player can use a pack-owned feature, stores job
definitions and runs shared job services. Capability packs own their gameplay, interfaces and data; np_jobs does not
implement police, medical, legal, transport or business gameplay.
np_faction remains the source of truth for organisation membership, grades, permission nodes and faction duty.
np_jobs combines those facts with a registered feature, its configuration, requirements and optional hooks. Packs
register feature IDs under their own prefix, such as police.* or medic.*; job definitions decide which features are
enabled for a job and with what config.
Runtime status ​
The shared np_jobs checkout contains the host runtime, FiveM export
bindings, startup migration and jobs UI. The server waits for oxmysql, applies the SQL schema and publishes the
npAddon host handshake. Its server API is listed on API & exports.
The runtime also ships a jobs NUI for player and staff workflows. Staff can create a starter definition, compose it from the registered feature catalog, validate/save it, and run access checks for their current player. See API & exports for server-side integration; vehicle spawning uses the configured vehicle-handler integration.
Ownership ​
| Owner | Owns |
|---|---|
np_faction |
Factions, membership, grades, permission nodes, duty and faction payroll/accounts |
np_jobs |
Feature registry and authorization, job definitions, minijob shift state, shared requirements and job-service provider registries |
| Capability packs | Feature gameplay, its interface, pack data and feature-specific rules |
| Resource integrations | Existing resource data and exports; they call the relevant pack feature when that authorization bridge is available |
Resources such as np_prison, np_surveillance, np_cctv and np_documents remain ordinary resources. They do not
register as capability packs or claim another pack's feature IDs. See the resource integration guide
for the pack-to-resource matrix and fallback behavior.
Shared host responsibilities ​
The current server runtime implements these services:
- Feature registration and authorization through
hasFeature/getFeatureConfig, including faction permission nodes, duty, feature config, requirements, place scope and hooks. - Job-definition validation and persistence, with faction, business and minijob kinds.
- Minijob shift and route state, feature grants, XP and skill progression, group-job coordination and payout tasks.
- Pack-owned requirement, grant, job-center, app-section, loadout, vehicle, item-gate and NPC-fallback registries.
These are host services. A pack still implements its own gameplay and calls the host at the action boundary. A replicated
Player(src).state.npJobs feature set is UI context only; a server action must resolve authorization again.
Feature requirements ​
The resolver combines the registered feature, active job or grant, grade permission node, duty rule and the configured requirements below:
| Requirement | Source |
|---|---|
| Required feature IDs | Other registered features; the host resolves each requirement recursively |
| Certification | Registered cert provider, or np_faction:HasCertification for the active faction |
| Document | Registered document provider, or np_identification:hasValidDocument / HasValidDocument |
| Zone | np_colshape plus the player's server-side position |
| Place | A feature schema field marked scope (place / placeList), checked against job config or np_faction:GetPlaces |
| Time and level | Feature config timeWindow / time and minLevel against the job progression track |
| Custom requirements | A provider registered with registerRequirementProvider(kind, fn); unsupported kinds deny |
Built-in certification, document and zone checks deny when they cannot validate the requirement. A requirement provider can add another pack-owned rule without moving that gameplay into np_jobs.
Install ​
See Installation. The resource requires oxmysql; np_faction supplies faction membership, grades,
permission nodes and duty. Framework bridges and sibling integrations are configured as optional runtime integrations.