Skip to content

Installation ​

Requirements ​

  • FiveM artifact with Lua 5.4 and OneSync
  • oxmysql
  • es_extended, with np_inventory recommended for physical keys
  • Node.js only when rebuilding the included NUI

Setup ​

  1. Install as np_vehiclekeys and import sql/install.sql into the server database.
  2. Add the resource after the framework, inventory and oxmysql in server.cfg:
cfg
ensure oxmysql
ensure es_extended
ensure np_inventory
ensure np_vehiclekeys
  1. Review shared/config.lua: framework and inventory detection, key item names, locksmith locations and optional remote UI settings.
  2. Ensure your garage and dealership integrations pass each vehicle's stable database ID or VIN when registering it. Registration by an ambiguous plate fails closed.

Items are registered with np_inventory at runtime. For ox_inventory or qb-inventory, define the configured fob and blade items with metadata support as described in shared/config.lua.

Optional integrations ​

Start np_phone after np_vehiclekeys for digital shared keys and valet grants. Start np_mechanic after both resources to enable temporary mechanic access; the mechanic resource owns upgrade and key-programming UI. np_minigames owns break-in games. The shared vehicle handler is planned; see the compatibility requirements.