Skip to content

Administration ​

The Administration entry appears in the console's library for players with np_manufacturing.admin. It has four tabs: Catalog, Onboarding, Bake and Brand kit. An admin still needs a session, so open the console at a workshop with a vehicle in the bay; with allowAdminUnregisteredInspection (default) that vehicle doesn't need a template.

Catalog review ​

Catalog

Lists every template and part with its status, source and key facts (slots; category, price, weight, required permission). Each entry can be moved between statuses:

Status Meaning
pending Registered or onboarded, not usable yet. Actions: Approve, Reject
approved Usable by players. Action: Revoke
revoked Withdrawn; existing builds stay stored, new ones can't use it
rejected Turned down

Only approved templates pass the bay's template check, and only approved parts can be fitted. Status changes of stored definitions (registered or onboarded) are persisted. Status changes of the fixtures in shared/catalog.lua only last until the resource restarts; edit the file to make them permanent.

The same actions exist as server exports (setTemplateStatus, setAttachmentStatus) for trusted resources.

New version on a template opens the onboarding wizard with that template's data and saves it as the next version (v2, …), a new pending template. Approve the new version, then revoke the old one.

Template onboarding ​

Onboarding

Every vehicle that is brought into a bay is recorded as an inspection: model, hash, class, livery count, how often and when it was seen. Unknown vehicles lists the models without a template (No template) and those that need a source asset first (Source needed). Onboarding one takes four steps:

  1. Basics: display name, silhouette (sedan, SUV, van, truck, coupé, bike) for the editor guide drawing, canvas sizes (512 / 1024 / 2048 px, limited to minCanvasSize…maxCanvasSize) and the application modes: Native livery (only when the model has livery slots), Runtime texture, Per car and Design only. The live modes need their data in step 3. Prebuilt templates need an artifact, so register those through the exports.

  2. Part slots: add up to 16 slots, either from presets (roof, push_bar, mirror_left / mirror_right as a mirrored pair, trunk, rear_bumper, each with a sensible bone and accepted categories) or as a custom slot. Each slot has an id, a bone and a position; place it on the real car with Place on vehicle, which starts the in-world gizmo (below). This needs a vehicle of that model parked in the bay.

  3. Live livery: the data for the live modes:

    • Texture targets for Runtime texture: up to 4 rows of target id, dictionary and texture name.
    • Livery slot pool for Per car: system (livery or mod 48), dictionary, optional hi dictionary, base index, render size, and the slot rows (index → texture name). Generate rows fills them from a name pattern such as police_sign_%d, a first index, a first number and a count; the rows stay editable.
    • Projections: where each editor view lands on the UV canvas (x, y, w, h from 0 to 1, mirrored or not), prefilled with the default layout and shown on a UV preview.

    Texture names come from the model files (OpenIV, CodeWalker). Check the index ↔ texture mapping of a slot pool on a test server before you approve the template (Preparing a model).

  4. Review: check and Create template.

The result is a template with id onboarded_<model>_v<n> (the version counts up per model) and status pending. It becomes usable once it is approved in the catalog tab.

The server validates everything again: texture targets (template_texture_target_invalid, template_texture_target_limit), the slot pool with the same rules as registered templates (runtime_slot_invalid), projections inside the canvas (template_projection_invalid), and a live mode without its data (template_mode_invalid).

The wizard sends the inspection's vehicle class and livery count along. The server can't read either from the entity, so the template stores them as trusted facts: the class decides class-restricted parts, the livery count bounds native livery indices.

In-world anchor gizmo ​

Place on vehicle hides the console and hands control to the game. Axis lines mark the anchor on the bay vehicle, and the keyboard moves it:

Key Action
W / S Forward / back (y)
A / D Left / right (x)
Q / E Down / up (z)
R / F, Arrow left / right Rotate (heading)
hold Shift Fine movement (0.08 m/s instead of 0.6 m/s, 10°/s instead of 60°/s)
Enter Commit the position to the slot
Backspace / Esc Cancel

Offsets are relative to the bone, approximated by the vehicle frame (exact for chassis / bodyshell), and limited to ±6 m. The console shows the live position while you move it.

Bake ​

Bake

Lists the templates with approved live builds (runtime_texture and Per car), with the system, dictionary and reserved indices of each, and per build its mode, car count, variables and baked state. Export for baking writes the renders, a manifest, meta snippets and step-by-step instructions into the resource's bake/ folder; after the manual asset step and a restart, Mark as baked registers the native livery index and Unbake undoes it. The whole process: Baking live designs.

Brand kits ​

Brand kit

A brand kit belongs to an organization and holds:

Field Limit
Name 60 characters
Colours (name + hex) brandKits.maxColors (16)
Logos (logo assets) brandKits.maxLogos (12)
Fonts 8
Brand colours only When on, the server rejects text and shape colours outside the kit on save and submit

In the livery studio, kit colours become the colour swatches and kit logos appear in the logo picker for members of the organization. Admins can edit any kit; approvers can edit the kits of organizations they are a member of. Logos must be logo assets the editor can read (saved from a project in the studio).

Other resources can read a kit with getBrandKit(organizationId); see Exports.