Skip to content

Equipment ​

Equipment

The equipment screen fits approved parts (lightbars, push bars, spotlights, antennas, …) to the vehicle. Parts come only from the server catalog: the client sends a definition id and a transform, never a prop model. The header shows the running estimate and build time, the stage shows parts / weight / estimate against their limits.

Slots ​

A template defines attachment anchors, called slots: roof, push_bar, mirror_left, mirror_right, trunk, rear_bumper on the shipped police fixture. Each slot has a label, a bone (chassis by default), a position and rotation relative to that bone, the categories it accepts, and optionally the slot that mirrors it.

Pick a part on the right and it snaps to its default slot. The stage shows the free slots as + markers on the Top and Side views; Live camera points the game camera at the car instead.

The server checks every selection:

  • the part is approved (fixtures only while enableFixtureCatalog is on);
  • the template supports attachments, and the slot exists and accepts the part's category;
  • the vehicle model and class are allowed (allowedModelKeys, allowedVehicleClasses). The class comes from the template, never from the client; a template without vehicleClass counts as "class unknown" and class-restricted parts are denied;
  • permissions: parts flagged emergencyEquipment need np_manufacturing.emergency, and a part with requiredPermission needs that extra np_admin node (the catalog shows it locked, e.g. "Needs SWAT access");
  • the transform is inside the part's limits, and scale is 1.0 (scaling props is not supported);
  • the build stays under maxAttachmentsPerBuild parts and maxWeightKg total weight;
  • the workshop allows equipment (allowedModes.attachment, see Workshops).

The slot also decides the bone the prop is attached to in the final build.

Placement and nudge keys ​

Select a fitted part to fine-tune it in the Placement card, with number fields or the keyboard. Moving parts away from their default transform needs allowPlayerAttachmentPlacement.

Key Top view Side view
W / S Towards the car's right / left (x) Up / down (z)
A / D Forward / back (y) Forward / back (y)
Q / E Down / up (z) Down / up (z)
R / F Rotate (heading) +5° / -5°
hold Shift Fine steps: 0.01 m and 1° (default 0.05 m and 5°)
M Add the mirrored part on the paired slot (e.g. left → right mirror)
Delete / Backspace Remove the part
Esc Deselect

Preview ​

Preview on car attaches the selected props to the real vehicle in the bay (np_prophandler attachments, client-side, only for you) and updates them as you nudge; unchanged props are re-attached instead of respawned. The server validates the selection at the same time, and the bottom bar shows the result: checking, valid, or the reason it was rejected (slot not accepted, out of bounds, weight limit, …). Clear preview removes the props; closing the console does too. Applied builds are np_prophandler attachments too: every client attaches them itself from the build.

Fixture parts

The fixture parts use vanilla props (prop_air_lights_02a, prop_worklight_03b, prop_aerial_01a, prop_bumper_01, prop_air_lights_05a). Treat them as examples and tune their offsets, or replace them with your own catalog.

Presets ​

Save current stores the fitted parts as a named preset, private or shared with your organization (unless visibility.organization = false) (maxAttachmentPresetsPerOwner per player). Presets remember the template and model they were made for; applying one fits all its parts at once, still subject to the server checks.

Limits ​

Limit Config Default
Parts per build maxAttachmentsPerBuild 16
Total weight maxWeightKg (0 = off) 120 kg
Position / rotation range per part: limits ±2 m x, ±4 m y, -1 … 3 m z, ±180° (fixtures)
Scale per part: limits.scale must be 1.0
Presets per player maxAttachmentPresetsPerOwner 100

Pricing ​

Each part has a price, a weightKg, a fitSeconds labour time and optional materials. They feed the bill:

bill   = wrapBase + perLayer × layers + Σ part.price + labourPerMinute × labour minutes
labour = stripSeconds + wrapSecondsPerLayer × layers + Σ part.fitSeconds

Part materials (for example wiring_kit, steel_bracket) are added to the job's materials list. The NUI uses the same formula and the server's pricing table, so the estimate in the header matches the bill. See Pricing and Templates & catalog.