Vehicle Key

The VehicleKey module provides client-side vehicle key management. Bridges qb-vehiclekeys, MrNewbVehicleKeys, wasabi_carlock, and others.

Client Functions

GetResourceName

Returns the vehicle key resource name.

local name = Bridge.VehicleKey.GetResourceName()
-- Returns: string (always "default")

Description: Returns the name of the VehicleKey module resource. Used for internal identification. Always returns "default" for the built-in VehicleKey module.

GiveKeys

Gives keys for a vehicle to the local player.

Bridge.VehicleKey.GiveKeys(vehicle, plate)
ParameterTypeDescription
vehiclenumberVehicle entity handle
platestringVehicle plate text

RemoveKeys

Removes keys for a vehicle from the local player.

Bridge.VehicleKey.RemoveKeys(vehicle, plate)
ParameterTypeDescription
vehiclenumberVehicle entity handle
platestringVehicle plate text