All products

np_manufacturing

An in-game vehicle workshop for roleplay fleets. Park a car in the bay, design its livery, fit approved equipment and send the build through review. Mechanics carry it out as a production job, and the design rolls out to every compatible car of the organisation.

v2.0.0qbx · qb · ESX · standaloneOneSyncRequires np_prophandler 1.1.0+
Price TBAStore link follows at release
Installation guideDocumentation
Version
2.0.0
Frameworks
qbx, qb, ESX, standalone
Required
OneSync, np_prophandler 1.1.0+
Database
Not needed. JSON files or oxmysql
Inventory
ox_inventory, qb-inventory, ESX (optional)
Permissions
Nodes managed in np_admin, organisations via a node or the framework job
Languages
English, German
Build step
None, the NUI ships prebuilt
Bay: a police cruiser parked with all nine bay checks green, the approved template card and body, paint wear and livery slot tiles
Bay: a police cruiser parked with all nine bay checks green, the approved template card and body, paint wear and livery slot tiles

Taken from the NUI in the browser at 1920×1080 with sample data. Prices, parts and vehicles are examples, not the shipped catalogue.

What's in it

The server decides everything that matters: bay checks, templates, part slots and limits, brand rules, prices, permissions and who pays. The console only drafts.

Bay

  • Live checklist while you park, with every failure explained in a plain sentence.
  • Body health, paint wear with a Repaint flag, vehicle id and native livery slots.
  • Camera presets (side, front, rear, top, orbit). Hold Left Alt to peek at the real car.
  • Start from fleet build: clone an approved organisation build onto this car.

Livery studio

  • Text, shape (rectangle, ellipse, stripe, chevron), image and logo layers, up to 64 by default.
  • Mirroring left to right, snap guides, zoom and pan, undo and redo, keyboard shortcuts.
  • Variables: {unit}, {plate} and {callsign} are filled in by the server per vehicle.
  • Immutable versions with thumbnails, and layers the template forces into every draft.
  • Brand kits: organisation colours (16), logos (12) and fonts become the swatches and logo picker. The server rejects colours outside the kit.

Equipment

  • Only approved parts from the server catalogue. The client sends an id and a transform, never a prop model.
  • Slots accept certain categories. Limits on position, part count (16) and total weight (120 kg) by default.
  • Parts you can't fit stay visible and name the permission they need.
  • Presets, private or shared with the organisation.

Release and review

  • Timeline: drafted, submitted, in review, approved, in production, applied.
  • Before/after preview, a change list against the car and a bill of materials.
  • Comments, Request changes, approve, revoke, restore and revert.
  • Five modes: native livery, runtime texture, per car, prebuilt or design only.

Live liveries

  • Per car: on models with prepared livery slots, every car shows its own live design, {unit} included. The server hands out the slots, and each client only renders the cars near it.
  • Off by default, and gated by its own permission on top of the server switch.
  • Baking: designs that stay are exported with meta snippets and step-by-step instructions, then registered as real liveries, so they cost nothing at runtime.

Production jobs and billing

  • Hold-E steps with scenarios, a progress bar and a job checklist.
  • The server enforces step order, a minimum duration and the mechanic's distance.
  • Optional materials from the mechanic's inventory (vinyl_roll, part materials).
  • Billing (optional): wrap, parts and labour, charged once to the organisation or the player. Cancelled jobs are refunded.

Fleet

  • A registry of every organisation vehicle the server has seen.
  • Rollouts to up to 50 vehicles, with a per-car unit number. Incompatible models are listed with a reason.
  • Wear: grows with age and body damage, flags a repaint and shows as dirt on the car.

Extras

  • Photo mode: studio, sunset and night lighting, screenshots via screenshot-basic, saved to the np_phone gallery.
  • Notifications on submit, approval and change requests through np_phone, np_hud or the console.
  • Optional Discord webhook for audit events, set as a server convar.

A closer look

From bay to fleet

The console walks a player through four build steps, Bay, Livery, Equipment and Release, plus a library with Fleet builds, the Approval queue and Administration. Steps unlock in order, and a locked step says why.

  1. Bay: use the workshop laptop (its np_prophandler option, E with np_hud, hidden while the console is open), park an empty car in the bay marker and get out. Nine checks run live (vehicle found, in bay, stationary, empty, identity, fleet ownership, template, workshop lock, permission). The server runs the same checks to open the session, so the checklist never disagrees with it. When all are green, the car is locked to you.
  2. Livery studio: add text, shapes, images and logos on the left, right, top, front and rear views. Mirror a layer to the other side, use {unit}, {plate} or {callsign}, and save versions with thumbnails. The studio also autosaves.
  3. Equipment: pick approved parts. Each one snaps to a slot on the template (roof, push bar, mirrors, …), and you fine-tune it with the keyboard inside the part's limits. Props preview on the real car.
  4. Review and approval: name the build, pick the application mode and submit. Approvers see it in the Approval queue with a before/after view, the changes against the car, the bill of materials and a comment thread. They approve or request changes. A build submitted by an approver is approved straight away.
  5. Production job: Apply in bay on an approved build creates an in-world job: collect materials, strip the old livery, apply the wrap, fit each part, final inspection. Mechanics hold E at markers on the car. The last step applies the build for every client and charges the bill. With jobs turned off, it applies at once.
  6. Fleet rollout: in Fleet builds, pick an approved build and the organisation's vehicles, each with its own unit number. Cars already in a bay get it now, the others are queued and get it the next time they park in one of the organisation's workshops.

Roles and permissions

Six permission nodes, managed in np_admin, decide what a player can do. Organisation membership comes from a node or from the framework job.

RoleCan
Designer
np_manufacturing.use
Open a session, design liveries, fit parts, submit and apply builds
Approver
np_manufacturing.approve
Review the queue, approve, request changes, revoke, restore, start fleet rollouts, edit the organisation's brand kit. Their own builds are approved straight away
Administrator
np_manufacturing.admin
Catalogue review, template onboarding, any brand kit, every fleet
Mechanic
np_manufacturing.mechanic
Work production job steps in the bay, cancel jobs
Emergency equipment
np_manufacturing.emergency
Fit parts flagged as emergency equipment (lightbars, spotlights, …)
Live liveries
np_manufacturing.runtime_livery
Submit, apply, roll out and preview builds in the live modes (runtime texture, per car)
# np_admin → Permissions: organisation membership,
# or map framework jobs in organization.jobMap
np_manufacturing.organization.lspd

# a single part can require its own node (requiredPermission)
np_manufacturing.swat

No ACE: every node shows up in np_admin's permission matrix. The v1 names (npv.vehiclemanufacturing.*) are no longer read, so grant the new nodes when you come from v1. v1 data migrates automatically.

Onboarding your own vehicles

Only models with an approved template pass the bay. Every car brought into a bay is recorded, so admins see which models have no template yet and can onboard them in game.

  1. Basics: display name, silhouette (sedan, SUV, van, truck, coupé, bike), canvas sizes (512, 1024 or 2048 px within your limits) and the modes: native livery when the model has livery slots, runtime texture, per car and design only.
  2. Part slots: up to 16, from presets (roof, push bar, a mirrored mirror pair, trunk, rear bumper) or custom. Place on vehicle starts an in-world gizmo on the bay car: W A S D Q E to move, R F to rotate, Shift for fine steps, Enter to commit.
  3. Live livery: texture targets, a livery slot pool (with a row generator for names like police_sign_%d) and the UV projections, so live-livery templates need no Lua.
  4. Review: create the template. It is stored as pending and becomes usable once it is approved in the Catalogue tab.

The Catalogue tab approves, rejects and revokes templates and parts, and New version copies a template back into the wizard. Prebuilt templates and your own parts are registered from another resource through the exports, then approved the same way.

Set it up

Compatibility

Only OneSync and np_prophandler 1.1.0 or newer are required. Everything else is optional and detected at start.

KindSupported
ServerA recent FiveM artifact (Lua 5.4) with OneSync
Frameworkqbx_core, qb-core, es_extended, or standalone (Rockstar licence and player name)
Organisation accountsqb-banking, Renewed-Banking, qb-management (qb / qbx), esx_addonaccount society_<job> (ESX)
Inventoryox_inventory, qb-inventory and forks with the same API, ESX inventory. Without one, job materials are unlimited
StorageDual-slot JSON files in the resource (default), or one row in oxmysql
Optionalnp_phone (notifications, photo gallery), np_hud (notifications while the console is closed), screenshot-basic (photo mode)
GarageAny resource that sets vehiclePersistentId and vehicleOrganizationId state bags. Without one, the car gets an id that lasts as long as the entity
StandaloneWith qbx / qb / ESX
Bay, studio, equipment, review✓✓
Production jobs, fleet rollouts, wear✓✓
Organisations from framework jobs– (nodes only)✓
Billing–✓
Job materials from inventory– (unlimited)✓

Engine limits: a runtime texture replaces a texture target for every vehicle that uses it, not one car's copy. Per car gets around that, but needs a model with prepared livery slots, and the pool size caps how many different designs can be close to each other. Both are off by default. GTA has no livery weathering, so wear shows as dirt. Props can't be scaled.

Installation

The NUI ships prebuilt, so there is no build step. SQL is only needed if you choose oxmysql.

  1. Put the resource in resources/ as np_manufacturing. Keep the name: the NUI, events and permission nodes use it.
  2. Pick the storage. The default JSON files need write access to server/data/. For MySQL, import the schema and set persistenceAdapter = 'oxmysql':
    mysql -u <user> -p <database> < sql/np_manufacturing.sql
  3. Replace the development workshop in shared/config.lua (Mission Row) with your own computer and bay positions, and replace or confirm the fixture catalogue. In game, np_manufacturing_workshop_here prints a ready workshop entry for your position.
  4. Set authorization.allowAllPlayers = false (it is true for local testing) and grant the nodes from Roles in np_admin.
  5. Start it after its dependencies:
    ensure oxmysql            # only with persistenceAdapter = 'oxmysql'
    ensure qbx_core           # or qb-core / es_extended (optional)
    ensure ox_inventory       # optional
    ensure screenshot-basic   # optional, photo mode
    ensure np_hud             # optional
    ensure np_phone           # optional
    ensure np_prophandler     # required, 1.1.0+
    ensure np_manufacturing
  6. Optional: the Discord audit webhook as a server convar, so the URL never reaches players:
    set np_manufacturing_webhook "https://discord.com/api/webhooks/..."

For your own scripts

Server exports read builds, fleet entries, inspections and brand kits. Registering templates and parts or queueing a build only works from trusted resources. On the client, openWorkshop opens the console from your own target or tablet script, and the server still runs every bay check.

-- garage: show the livery a car has
local key = ('police:persistent:%s'):format(persistentId)
local build = exports.np_manufacturing:getBuildForVehicle(key)
if build then print(build.name, build.status, build.applicationMode) end

-- a newly bought fleet car gets the current design (trusted resource)
local ok, reason = exports.np_manufacturing
  :queueBuildForVehicle(key, 'build_abc123', '042')

-- client: open the console from your own interaction system
exports.np_manufacturing:openWorkshop('mrpd_bay1')

Questions

Which vehicles and parts does it come with?

One police cruiser template and five parts built from vanilla props. They are development fixtures to exercise the system, not tested production content. Onboard your own vehicles in game, or register templates and parts from another resource.

Does the livery show on the actual car?

That depends on the mode. Native livery switches the car to one of its built-in livery slots and works on every client. Runtime texture paints the design onto a texture target, but the engine replaces that target for every nearby car using it. Per car gives every car its own design through a model's prepared livery slots. Both live modes are off by default, and designs that stay can be baked into real liveries. Prebuilt needs an adapter resource that ships the texture. Design only stores the design and fits the parts.

Do I need a framework?

No. Standalone covers the whole workflow, with organisations from np_admin nodes. Billing needs qbx, qb or ESX, and taking job materials needs a supported inventory.

Who pays for a build?

Billing is off by default. When on, a build is charged once when it is applied, to the vehicle's organisation account or the player who requested it, never the mechanic. Fleet rollouts only bill the organisation. Cancelled jobs are refunded, and retries never charge twice.

Do I need a database?

No. The default storage is two JSON files inside the resource. If you prefer MySQL, import sql/np_manufacturing.sql and switch to oxmysql. The whole state is one row.

Which languages are included?

English and German, set with locale in the config.

Works well with

Set up your workshop.

Installation, workshops, templates, roles and every export are in the docs.

Install np_manufacturing