Vehicle
MSK.GetClosestVehicle
Parameters
coords - vector3
- Coords - Optional, default: playerCoords
Returns
vehicle - number
- A vehicle handle
distance - float
- The Distance to this vehicle
MSK.GetClosestVehicles
Parameters
coords - vector3
- Player Coords
maxDistance - float
- Max distance to check for vehicles - Max Distance is 200.0
MSK.GetVehicleInDirection
Get the Vehicle in front of the player
Returns
vehicle - int
- A vehicle handle
coords - vector3
- The vehicle coords
distance - float
- The distance between the vehicle and the player
MSK.IsVehicleEmpty
Get whether the vehicle is empty or not
Parameters
vehicle - int
- A vehicle handle
Returns
isVehicleEmpty - boolean
- whether the vehicle is empty or not
MSK.GetVehicleLabel
Parameters
vehicle - int
- A vehicle handle
Returns
label - string
- Label of the vehicle
Last updated