Server Events
Edit Vehicles
TriggerEvent("bhd_garage:EditVehicles", identifier)
Description: Refreshes a player's stored vehicles from database.
Use case: After buying vehicle so player would see the vehicle in garage
Arguments:
identifier
(string) – The identifier of the player.
Delete Key (Server)
TriggerEvent('bhd_garage:keys:DeleteKey', count, plate, source)
Description: Deletes a specific number of keys from the system.
Arguments:
count
(number) – The number of key items to be deleted.plate
(string) – The vehicle’s plate number.source
(number) – The player’s source ID.
Impound Vehicle
TriggerEvent('bhd_garage:ImpoundVehicle', plate, impoundLot, source, instant)
Description: Sends a vehicle to impound.
Arguments:
plate
(string) – The vehicle’s plate number.impoundLot
(string) – The name of the impound lot.source
(number) – The player’s source ID.instant
(boolean) – Whether it should be instantly towed or not.
Create Key (Server)
TriggerEvent('bhd_garage:keys:CreateKey', plate, source)
Description: Creates a new key for a player after a plate change.
Arguments:
plate
(string) – The vehicle plate number.source
(number) – The player’s source ID.
Last updated