Finds the closest vehicle (if any) from alt.Vehicle.all.
pos
- From which position to look for the nearest vehicle.
range
- In which range to search for the nearest vehicle. Defaults to Infinity
.
Returns a string representation of value
that is intended for debugging.
Waits for the callback to return true, otherwise the promise will be rejected after timeout
If callback returns true it resolves promise.
The maximum milliseconds to wait, otherwise promise will be rejected. Defaults to 2000.
Finds the closest player (if any) from alt.Player.all.
pos
- From which position to look for the nearest player.range
- In which range to search for the nearest vehicle. Defaults toInfinity
.