Triggers
TRIGGERS
TriggerServerEvent("bit-garage:impound", name, plate, model, useCaution, price)
name: string plate: string model: string useCaution: int (1 = yes, 0 = no) price: int Example:
TriggerServerEvent("bit-garage:impound", "Police Dpt", "JF93FJ5", 1265391242, 1, 1500)
TriggerClientEvent('bit-garage:sendTax', source, typetax, amount)
source: int typetax: string amount: int Example
TriggerClientEvent('bit-garage:sendTax', source, "City Tax", 3500)
TriggerServerEvent("bit-garage:transferveh", source, plate, targetID)
source: int plate: string targetID: int Example
TriggerServerEvent("bit-garage:transferveh", source, "JG8267FA", 147)
Save vehicle
TriggerServerEvent("bit-garage:saveCar", plate, garageName, props)
--example:
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
local plate = GetVehicleNumberPlateText(vehicle)
local props = QBCore.Functions.GetVehicleProperties(vehicle)
TriggerServerEvent("bit-garage:saveCar", plate, 'House', props)
Open Garage
TriggerEvent("bit-garage:garageDataUpdate", 'House', 'car')--this is used to tell the script the name of the garage we are using and the garage type
TriggerEvent("bit-garage:open")
TriggerClientEvent("bit-garage:vehkey", playerID, vehicle)
playerID: int vehicle: int
Last updated