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.
Returns: Object with vehicle functions and data. You can see details about object here.
Last updated