Vehicle Functions
SpawnVehicle
Spawns vehicle at specified location
model
hash or string
Model or hash of the vehicle
coords
vector4
Coords to spawn vehicle at, defaults to ped current location
isNetworked
Boolean
Should the vehicle be networked
GetVehiclesInArea
Returns an array of vehicle entity handles in the radius of the specified coords
coords
vector3
The coords to check at
area
Number
The radius size to check for at the specified coords
IsSpawnPointClear
Returns a bool indicating if there are any vehicles a the specified coords and radius
coords
vector3
The coords to check at
maxDistance
Number
The radius size to check for at the specified coords
GetClosestVehicle
Returns the closest vehicle entity handle
coords
vector3
The coords at which to find the closest ped. If not passed through it'll use your ped's coords
GetClosestVehicle
Returns the closest vehicle entity handle
coords
vector3
The coords at which to find the closest ped. If not passed through it'll use your ped's coords
GetVehicles
Returns an array containing entity handles for each entity in the ped game pool
Last updated