Functions
Create Vehicle
Usage
TriggerEvent("is_garage:createVehicle", vehicle, data, owner)vehicle:
numberdata:
objectparked(optional):
objectcoords:
vector4street:
string
plate(optional):
stringfuel(optional):
floatengine(optional):
numberbody(optional):
numberdistance(optional):
floatmods(optional):
object(ox_lib)
owner(optional):
number(playerId)orobjectjob:
stringminGrade:
numberidentifier:
stringname:
string
data:
objectmodel:
stringhash:
numberplate:
stringparked:
objectcoords:
vector4street:
string
fuel(optional):
floatengine(optional):
numberbody(optional):
numberdistance(optional):
floatmods(optional):
object(ox_lib)
owner:
number(playerId)orobjectjob:
stringminGrade:
numberidentifier:
stringname:
string
Example
Deleting Vehicle
Usage
target:
string(vin)ornumber(netId)
target:
string(vin)ornumber(netId)
Example
Setting Distance
Usage
target:
string(vin)ornumber(netId)distance:
float
target:
string(vin)ornumber(netId)distance:
float
Example
Get Vehicle By Plate
Usage
plate:
string
Example
return:
objectowner:
objectjob:
stringminGrade:
numberidentifier:
stringname:
string
model:
stringhash:
numbervin:
stringplate:
stringstatus:
numberorobjectparked:
objectcoords:
vector4street:
string
fuel:
floatengine:
numberbody:
numberdistance:
float
Get Vehicle By Net Id
Usage
netId:
number
Example
return:
objectowner:
objectjob:
stringminGrade:
numberidentifier:
stringname:
string
model:
stringhash:
numbervin:
stringplate:
stringstatus:
numberorobjectparked:
objectcoords:
vector4street:
string
fuel:
floatengine:
numberbody:
numberdistance:
float
Get Vehicle By Vin
Usage
vin:
string
Example
return:
objectowner:
objectjob:
stringminGrade:
numberidentifier:
stringname:
string
model:
stringhash:
numbervin:
stringplate:
stringstatus:
numberorobjectparked:
objectcoords:
vector4street:
string
fuel:
floatengine:
numberbody:
numberdistance:
float
Get Player Keys
Usage
target:
string(identifier)ornumber(playerId)
Example
return:
arrayvin:
stringfavorite:
boolean
Get Player Vehicles
Usage
target:
string(identifier)ornumber(playerId)
Example
return:
arrayvin:
string
Get Vehicle Distance
Usage
target:
string(vin)ornumber(netId)
Example
return:
float
Last updated