Difference between revisions of "GET CLOSEST CAR"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 19: Line 19:
  
 
This function returns the closest car in the specified radius, at the specified coordinates.
 
This function returns the closest car in the specified radius, at the specified coordinates.
 +
 +
 +
 +
'''Note:''' Parameter 6, when set to 69 or 71, appears to also return emergency vehicles such as police, ambulance, and firetruck.

Revision as of 19:37, 16 September 2011

GET_CLOSEST_CAR
Number of parameters: 6
Parameter #TypeDescription
1.floatX-Coordinate
2.floatY-Coordinate
3.floatZ-Coordinate
4.floatRadius
5.integerUnknown (usually 0)
6.integerUnknown (usually 70)
Return value:
TypeDescription
integerid of the closest car of the specified radius/coordinates.

This function returns the closest car in the specified radius, at the specified coordinates.


Note: Parameter 6, when set to 69 or 71, appears to also return emergency vehicles such as police, ambulance, and firetruck.