BHD Scripts
  • 📚Documentation
  • Scripts
    • 🖥️BHD Bossmenu
      • Dependencies
      • Instalation
      • Configuration
        • Society Money Log
      • Errors
    • 🚗BHD Garage
      • Dependencies
      • Instalation
      • Configuration
      • Server Configuration
      • Commands
      • Errors
      • Developer Options
        • Exports
          • Client Exports
          • Server Exports
            • Vehicle Object
        • Events
        • Editable Files
          • Client
          • Server
            • editable_server.lua
            • functions.lua
        • Vehicle Images
    • 📜BHD MOT
      • Dependencies
      • Instalation
      • Configuration
    • 🐾BHD Animal Tracker
      • Dependencies
      • Instalation
      • Configuration
Powered by GitBook
On this page
  • 🎮 Client-Side Events
  • Create Key
  • Delete Key
  • Property Deletion
  • Toggle Garage Blips
  • 🖥️ Server-Side Events
  • Edit Vehicles
  • Delete Key (Server)
  • Impound Vehicle
  • Create Key (Server)
  1. Scripts
  2. BHD Garage
  3. Developer Options

Events

This page documents client-side and server-side events

PreviousVehicle ObjectNextEditable Files

Last updated 2 months ago

🎮 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 .

  • 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.

🚗
Config.DefaultGarageName