Skip to content

Compatibility ​

np_mechanic depends on none of the np_* resources. Every sibling it talks to lives behind one adapter in integrations/ with a built-in fallback, is detected at start, and is picked up or dropped when it starts or stops later. Config.Integrations.<name> = false forces the fallback. The console prints one line per sibling: active, fallback (…) or missing export <name>.

np_* siblings ​

Sibling With it Without it
np_inventory mech_* items registered at runtime with images and metadata, supply stashes, hidden compartments (guarded by its beforeOpen hook), the black_money item ox_inventory / qb-inventory bridge, or no items
np_payments The checkout for every payment, invoices for absent customers, refunds, payments credited to the society Framework money (cash, then bank), and np_mechanic credits the society itself. No invoices
np_hud Toasts, key prompts and progress bars np_mechanic's own NUI layer draws them
np_menu Radial entries (tuning, work orders, duty, deliveries, the app), vehicle options in its third eye, server actions ox_target / qb-target, else a G key prompt in front of the vehicle; commands
np_phone The "Mechanic" store app, texts, phone notifications, the Dynamic Island for roadside calls The same app as a NUI screen (/mechanic), toasts, texts wait in an inbox until login
np_character Character names Framework names
np_identification The driver's licence at a police inspection Not shown
np_discord Staff by Discord role (Config.AdminDiscordRoles) Staff by framework groups and Config.Admins
np_gangs A chop or illegal job inside a turf adds police attention and grip for the holder; gang-mode shops No turfs
np_drugs Tip-offs go through its dispatch (ps-, cd_, qs-, core_dispatch …) A toast and a waypoint for officers on duty
np_minigames Installs run as its server-validated torque game; quick fixes start with a skill ring. See below The built-in torque ring and the plain progress bar

Minigames (np_minigames) ​

With np_minigames started and Config.Minigames.enabled on (the default):

  • Installs (work orders and self-install) are np_minigames' torque game. Its card shows the needle ring and the install bar and replaces np_mechanic's ring screen. The server maps Config.Workshop.install (checks, period, zone and perfect band, perfect saves) and the install time (part tier and skill) onto it, and the result (perfects, misses) feeds the same condition, duration and XP rules as the built-in ring. Misses never fail an install, they cost condition. The difficulty label comes from the part tier (difficulty = { 'easy', 'medium', 'hard', 'expert' }). Moving more than maxMove (6 m) from where the install started cancels it. The vehicle, lift and distance checks stay np_mechanic's.
  • Quick fixes (mech_repairkit, mech_tyre, /jumpstart) start with a server-checked skillcheck before the progress bar. A lost ring stops the fix before anything is used (the item stays in the pockets) and starts the quick-fix cooldown.
lua
-- shared/config/minigames.lua
Config.Minigames = {
  enabled = true,
  install = {
    enabled = true,
    game = 'torque',            -- another game id works too: a plain pass / fail (a fail stops the install like a cancel)
    difficulty = { 'easy', 'medium', 'hard', 'expert' },   -- by part tier
    maxMove = 6.0,
    opts = {},                  -- extra np_minigames opts (icon, tint, noAssist, ...)
  },
  quickfix = {
    enabled = true,
    game = 'skillcheck',
    levels = { repairkit = { 'easy', 'medium' }, tyre = { 'easy', 'easy' }, jumpstart = { 'easy' } },
    opts = {},
  },
}

In np_admin: Settings → Mechanic → Minigames (the switch, the install game and its max. movement, the quick-fix ring) and Integrations → np_minigames. Without np_minigames, or with a switch off, the built-in torque ring and the plain progress bar run, unchanged.

np_menu's built-in tuning shop ​

np_menu ships its own tuning shop at Benny's and five LS Customs locations. It keeps working next to np_mechanic, and whatever it sells is persisted by np_mechanic: on np_menu:shops:tuningBought np_mechanic captures the buyer's vehicle props, keeps only the keys np_menu may change, saves them into the framework's vehicle table (owned_vehicles / player_vehicles, merged) and writes a service book entry.

Both shops answer E at the same places. To use np_mechanic's workshops only, empty np_menu's tuning locations in its shared/config.lua:

lua
Config.Shops = { tuning = { locations = {} } }   -- np_menu keeps its clothing shops

Config.Builtin.shops = false in np_menu removes the clothing shops as well.

np_inventory's built-in items ​

np_inventory's built-in repairkit, spare_tire, jerrycan, car_keys and lockpick are untouched: np_mechanic only uses mech_* names. Both repair kits can exist side by side (np_inventory's repairkit sets the engine to 60 %, mech_repairkit to 65 % and is also a workshop consumable). Disable np_inventory's in its Config.BuiltinItems if you want only one. See np_inventory → Built-in items.

np_manufacturing ​

np_manufacturing handles organisation fleets: police and EMS liveries and equipment in its own bays. np_mechanic does not touch the liveries of those builds. Its livery category only sets the native livery index of private cars.

Frameworks and inventories ​

Supported Notes
Frameworks es_extended (first target), qbx_core, qb-core, standalone Standalone has no economy: checkouts are refused, vehicles live in mech_vehicles
Inventories np_inventory (first target), ox_inventory, qb-inventory, none ox / qb need the item lines from Installation. qb-inventory has no stash open guard and pays dirty money in cash
Society accounts esx_addonaccount; Renewed-Banking, qb-banking, qb-management Payments for job workshops
Fuel LegacyFuel, ox_fuel The fuel level for diagnosis and fuel delivery; native fuel otherwise
Vehicle keys np_vehiclekeys, qbx_vehiclekeys, qb-vehiclekeys Temporary drive/lock access for mechanics, then the legacy QB bridges. np_vehiclekeys requires a registered stable vehicle identity.
Targets ox_target, qb-target Only used for vehicle options when np_menu is not running
Dispatch through np_drugs Or listen to np_mechanic:server:tipOff yourself

Details per bridge: Bridges.

Garages, trunks and plates ​

  • Props are merged into the framework's vehicle JSON (owned_vehicles.vehicle, player_vehicles.mods), never replaced. Garages that save props from the client should load what np_mechanic saved. A test drive preview is reverted from the server.
  • Fake plates: garages, trunks, gloveboxes and key resources key by the plate text, so while a fake plate is on they see the fake one. Ask GetRealPlate(plate) if that matters.
  • Police and MDTs: impound is your police resource's job. Use IsVehicleIllegal, GetVehicle and GetRealPlate.