Events
This page documents client-side and server-side events
🎮 Client-Side Events
Create Key
TriggerServerEvent('bhd_garage:keys:CreateKey', plate)
Description: Requests the server to create a key for the specified vehicle.
Arguments:
plate
(string) – The plate of the vehicle.
Delete Key
TriggerServerEvent('bhd_garage:keys:DeleteKey', count, plate)
Description: Requests the server to delete a specific number of keys.
Arguments:
count
(number) – The number of key items to be deleted.plate
(string) – The plate of the vehicle.
Property Deletion
TriggerEvent("bhd_garage:PropertyDeletion", garageName)
Description: Informs the system that a property (garage) has been deleted and the system moves vehicle to Config.DefaultGarageName.
Arguments:
garageName
(string) – The name of the deleted property.
Toggle Garage Blips
TriggerEvent("bhd_garage:ToggleBlips", state)
Description: Toggles the visibility of garage blips on the map.
Arguments:
state
(boolean) – Whether to show or hide blips.
🖥️ Server-Side 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