Skip to content

Going live ​

The shipped shared/config.lua is set up for local testing: everyone has every permission, the fixture catalog is on, and the only workshop is a development fixture at Mission Row. Work through this list, top to bottom, before you open a public server.

While any of authorization.allowAllPlayers, enableFixtureCatalog or developmentCommands is still true, the server prints one warning at start-up (development configuration: …). It changes nothing; it is there so a test config doesn't slip into production unnoticed.

1. Permissions ​

  1. authorization.allowAllPlayers = false.
  2. Grant the permission nodes to groups in np_admin (Permissions), including np_manufacturing.runtime_livery if you offer live liveries. Without np_admin only the console, the np_admin_fallback identifiers and the ESX groups in np_admin_fallback_groups pass.
  3. Remove old add_ace … npv.vehiclemanufacturing.* / np_manufacturing.* lines from server.cfg; they are no longer read.

2. Development switches off ​

  1. developmentCommands = false and debug = false.
  2. Keep allowEphemeralVehicleIdentity and allowPlateIdentityFallback at false, and make sure your garage sets vehiclePersistentId and vehicleOrganizationId.

3. Real workshops ​

Capture each workshop in game with the admin command. It needs np_manufacturing.admin, works with developmentCommands = false and never writes files:

  1. Stand where the laptop should sit, facing the way it should face, and run np_manufacturing_workshop_here <id> (same as … <id> computer). <id> is letters, digits and _, starting with a letter, e.g. mrpd_bay_1.
  2. Park a car in the middle of the bay, sit in it, and run np_manufacturing_workshop_here <id> bay.
  3. The second call prints a complete workshops entry to F8 and the server console (chat gets the status lines). Paste it inside workshops = { … }, set label, organizationId and allowedModes, and check the radii (computerRadius 4 m, bayRadius 8 m). See Workshops.
  4. Delete workshops.development_lspd and restart the resource.

Captures are kept in memory per admin until the resource restarts, so you can redo either step. With np_admin running, the staff tool Workshop position here (under Resource tools) does the same.

4. Catalog and templates ​

  1. Onboard your models in Admin → Onboarding (Administration) or register them from another resource (Templates & catalog). Approve a template only after a test build looks right on the car. To change an approved template, use New version in the catalog, approve the new one and revoke the old one.
  2. Replace the fixture parts with tested props, then set enableFixtureCatalog = false. Builds made on fixture templates can no longer be applied after that.

5. Live liveries ​

Both live modes are off by default. Turn on what you offer (allowRuntimeTexturePreview, runtimeSlots.enabled), check the slot mapping of each per-car model first, and plan to bake designs that stay. See Live liveries & baking.

6. Economy and notifications ​

  1. pricing.* to your server's prices.
  2. billing.enabled = true only with qbx, qb or ESX, and choose billing.payer. Test one charge and one refund.
  3. productionJobs.*, including requireMaterials and the item names.
  4. organization.jobMap and organization.labels for your jobs.
  5. notifications.phone / notifications.hud, and the Discord webhook as a server convar (set np_manufacturing_webhook "…"), never in shared/config.lua.

7. Persistence and limits ​

  1. Choose persistenceAdapter and back up server/data/state-a.json / state-b.json or the np_manufacturing_state table with the rest of your server data. To start clean, stop the resource and delete the state files (or the row).
  2. Review rateLimits.*, the size limits and rollouts.maxTargets.
  3. List only the resources that should call the privileged exports in trustedServerResources.

8. Start ​

Restart the resource. The start-up line shows the persistence adapter, framework and inventory, and the development warning should be gone. Open the console once more with a normal player account.