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 ​
- Install as
np_vehiclekeysand importsql/install.sqlinto the server database. - Add the resource after the framework, inventory and oxmysql in server.cfg:
cfg
ensure oxmysql
ensure es_extended
ensure np_inventory
ensure np_vehiclekeys
- Review
shared/config.lua: framework and inventory detection, key item names, locksmith locations and optional remote UI settings. - 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.