Jobs & capabilities ​
np_mechanic separates the workshop as a world location from the staff capabilities a job receives there. The optional np_jobs integration registers mechanic as a capability pack and checks those capabilities on the server before mechanic actions.
Requirements and fallback ​
Enable np_jobs and np_faction to use the integration; the addon lifecycle also supports those resources starting later. np_mechanic registers a mechanic_workshop place type with np_faction; this creates the type only. Add or configure a place for each workshop in np_faction, then map it to the mechanic shop ID with the shop override field factionPlace if the IDs differ.
When np_jobs is attached, it owns feature grants and duty. The default permission node for each feature is feature.mechanic.
When np_jobs is not installed, np_mechanic uses Config.Jobs.fallback for framework job and grade compatibility, including police inspection and dispatch recipients. Move custom police job names into that map. If np_faction is available in that mode, a player can qualify through a held secondary job. Setting Config.Integrations.np_jobs=false disables attachment; if np_jobs is present but disabled, stopped or unattached, staff actions and police fallback dispatch fail closed. Customer services and NPC workflows remain available where their service configuration allows them.
Feature catalog ​
| Feature | What it controls | Scope/config |
|---|---|---|
| mechanic.workorders | Claiming work orders and staff board actions | mechanic_workshop places |
| mechanic.repair | Repair tasks and repair billing | mechanic_workshop places |
| mechanic.diagnose | Full workshop diagnosis | mechanic_workshop places |
| mechanic.tune | Performance installs and tuner staff actions | mechanic_workshop places; maxTier |
| mechanic.paint | Cosmetic installation and paint work | mechanic_workshop places |
| mechanic.security | Security part installation; an illegal jammer or compartment also requires mechanic.illegal | mechanic_workshop places |
| mechanic.parts | Repair supplies and parts operations | mechanic_workshop places; reorder |
| mechanic.manage | Existing workshop operational management | mechanic_workshop places |
| mechanic.roadside | Jump, tyre, fuel and fix requests | mechanic_workshop places; services |
| mechanic.tow | Tow, winch and workshop delivery | mechanic_workshop places; deliverTo currently supports own workshop |
| mechanic.inspect | Police vehicle inspection | No workshop place |
| mechanic.chop | Player-operated dismantling | mechanic_workshop places with the chop service |
| mechanic.vin | VIN scrub service | mechanic_workshop places with the VIN service |
| mechanic.plates | Fake plate installation | mechanic_workshop places with fake-plate service; restoring a fake plate remains an owner recovery action |
| mechanic.illegal | Illegal part installation; security parts require both mechanic.security and mechanic.illegal | mechanic_workshop places; categories |
The server rechecks installation grants, mechanic.tune.maxTier and mechanic.illegal.categories when work begins and completes. It also rechecks active roadside service lists, tow own-workshop destination, chop grants, VIN grants and fake plate installation grants at completion. mechanic.parts.reorder remains enforced by business reorder RPCs. Other restrictions remain in existing mechanic config and world-service logic. In the no-host transition mode, underground services retain their previous access rules.
Example compositions ​
These are examples for server administrators, not built-in job names:
- Full mechanic: workorders, repair, diagnose, tune, paint, security, parts and manage at one or more workshop places.
- Tow operator: tow at recovery workshops; roadside can be granted separately for selected assistance services.
- Tuner crew: tune and paint at a car meet or tuning venue, without work orders, repairs, parts or management.
- Roadside assistance: roadside at selected legal workshops, with only the intended services.
- Fire-service vehicle technician: repair and diagnose at a fleet bay, without public workshop billing or retail parts.
- Chop crew: mechanic.chop, mechanic.vin, mechanic.plates and selected illegal categories at underground service places.
Player-owned workshops ​
Existing owners, staff ranks, wage rates, balances, stock and deliveries remain in np_mechanic's mech_business records. No automatic ownership migration occurs. In np_jobs mode, mechanic features gate the gameplay actions, while the existing local roster remains necessary for the boss tablet and ownership operations. np_jobs duty and feature changes are mirrored into local business payroll and tablet state. Use np_jobs duty controls; the legacy /mechduty action is for transition mode when np_jobs is absent.
The np_faction API currently supports place-type registration and faction membership/account operations, but it does not expose the owner/roster/balance migration contract needed to transfer current mechanic businesses safely.
Related resources ​
- np_vehiclekeys remains behind the mechanic Keys adapter for mechanic/underground vehicle handoffs.
- np_impound has no tow-to-lot integration yet. A destination needs an explicit impound authority handoff before it can be offered.
- np_garages owns vehicle storage and transfer; mechanic vehicle state must continue to flow through the mechanic vehicle handler.
- np_logistics may replace the local parts delivery flow after it provides create, confirm, cancel and payout APIs. Do not enable duplicate delivery authorities for the same order.
- server/core/10_vehicles.lua remains the canonical owner of plate identity, condition, mileage, VIN, installed parts and the npmVeh state bag.
Current host contract ​
The adapter uses np_jobs API v1:
- addon metadata and npAddon.attach for lifecycle
- registerFeaturePack and table-form registerFeature
- hasFeature(src, id, { duty, place }) returning allowed, reason and feature info including effective config
- getPlayersWithFeature for feature-based fan-out
- placeList with placeType and scope
- np_jobs:featuresChanged, np_jobs:dutyChanged and np_jobs:jobChanged events refresh mechanic state
The adapter also registers mechanic_workshop with np_faction. np_faction does not create static place records from that registration, so administrators must provision places before granting place-scoped features.
The np_jobs and np_medic / np_police contracts are still in progress. Align their examples to the current table-form registration, opts-based hasFeature call, placeList scope, feature.mechanic.* node convention and host-owned duty before relying on them together.