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
  • Remove Friend from Garage
  • Remove All Friends from Garage
  • Save All Vehicles
  • Get Vehicle Plate
  • Add VIN to Vehicle
  • Get Vehicle Data
  1. Scripts
  2. BHD Garage
  3. Developer Options
  4. Exports

Server Exports

Remove Friend from Garage

exports.bhd_garage:RemoveFriendFromGarage(plate, targetIdentifier)
  • Description: Removes a specific friend’s access to a vehicle.

  • Arguments:

    • plate (string) – The plate number of the vehicle.

    • targetIdentifier (string) – The identifier of the player being removed.

Remove All Friends from Garage

exports.bhd_garage:RemoveFriendsFromGarage(plate)
  • Description: Removes all friends from a specific vehicle.

  • Arguments:

    • plate (string) – The plate number of the vehicle.

Save All Vehicles

exports.bhd_garage:SaveAllVehicles()
  • Description: Saves all currently active vehicles to the database.

Get Vehicle Plate

exports.bhd_garage:GetVehiclePlate(vehicleID)
  • Description: Retrieves the plate number of a given vehicle.

  • Arguments:

    • vehicleID (entity ID) – The entity ID of the vehicle.

  • Returns: String representing the vehicle's plate number or XXNOTFOUNDXX if plate was not found.

Add VIN to Vehicle

exports.bhd_garage:AddVIN(vehiclePlate, vinNumber)
  • Description: Assigns a VIN number to a vehicle.

  • Arguments:

    • vehiclePlate (string) – The plate number of the vehicle.

    • vinNumber (string) – The new VIN to be assigned.

Get Vehicle Data

exports.bhd_garage:GetVehicle(vehiclePlate)
  • Description: Retrieves vehicle data from the database.

  • Arguments:

    • vehiclePlate (string) – The plate number of the vehicle.

PreviousClient ExportsNextVehicle Object

Last updated 2 months ago

Returns: Object with vehicle functions and data. You can see details about object .

πŸš—
here