This function was added in SA-MP 0.3c R3 and will not work in earlier versions!
This function can be used to calculate the distance (as a float) between a vehicle and another map coordinate. This can be useful to detect how far a vehicle away is from a location.
|vehicleid||The ID of the vehicle to calculate the distance for.|
|Float:X||The X map coordinate.|
|Float:Y||The Y map coordinate.|
|Float:Z||The Z map coordinate.|
A float containing the distance from the point specified in the coordinates.