Skip to content

np_vehiclekeys ​

Server-authoritative vehicle identity, locks, physical keys and remote fobs for FiveM. The first target is ESX with np_inventory and oxmysql. Qbox, QB-Core, ox_inventory and qb-inventory compatibility bridges are included.

The player-facing UI is deliberately small: an optional realistic remote fob and locksmith interactions for cutting and replacing keys. Vehicle break-ins and hotwiring belong to np_minigames; mechanic upgrades and key programming belong to np_mechanic; shared digital keys belong to np_phone.

What it owns ​

  • Stable vehicle identity, lock state, key generations, physical key records, temporary access grants and audit history.
  • Server-validated lock/unlock, trunk, alarm and remote-start requests.
  • Optional inventory fob items with key ID, vehicle ID, generation, rights and expiry metadata.
  • Locksmith key copies and replacement keys, with revocation of lost generations.
  • Compatibility exports and events for common vehicle-key resources.

Identity ​

Register owned vehicles with the framework's stable vehicle ID or a generated VIN. A plate is an attribute, not an identity: duplicate or reused plates must not transfer credentials. Read APIs never create identities. Vehicle creation, dealership transfer, garage restoration and the planned vehicle handler should call RegisterVehicle with the trusted owner and stable ID.

See installation, compatibility, and exports and events.