Vehicle keys

Vehicle keys. bridge.vehiclekeys grants or removes keys for a vehicle entity.

bridge.vehiclekeys grants or removes keys for a vehicle entity.

  • Client — entity-handle grants (provider-dependent)
  • Server — authoritative grants

Auto-detect order: MrNewbVehicleKeys → kora_vehiclekeys → jg-vehiclekeys → qbx_vehiclekeys → cd_garage → mVehicle → okokGarage → qb-vehiclekeys → vehicles_keys → wasabi_carlock → Renewed-Vehiclekeys → mk_vehiclekeys → ak47_vehiclekeys → 0r-vehiclekeys.

When MrNewbVehicleKeys is the active key resource, these calls route into its grant/revoke flow.

  • kora_vehiclekeys and jg-vehiclekeys are checked before qbx_vehiclekeys and qb-vehiclekeys because they provide those names.
  • kora_vehiclekeys has no client exports, so client give / remove do nothing on it. Server give stores a session key that lasts until the player disconnects.
  • wasabi_carlock receives the vehicle's model with a server grant, so the right key item is used.

For plate changes, lock profiles, rentals, and temp keys, call the key resource's own exports. This page is only the bridge wrapper.

-- Server (authoritative)
bridge.vehiclekeys.give(source, vehicle)

-- Client — only providers with real client exports (e.g. MrNewbVehicleKeys)
bridge.vehiclekeys.give(cache.vehicle)