Difference between revisions of "GET CLOSEST CAR"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{Native |np = 6 |p1t = float |p1d = X-Coordinate |p2t = float |p2d = Y-Coordinate |p3t = float |p3d = Z-Coordinate |p4t = float |p4d = Radius |p5t …')
 
Line 13: Line 13:
 
|p6t    = integer
 
|p6t    = integer
 
|p6d    = Unknown (usually 70)
 
|p6d    = Unknown (usually 70)
 +
|r      = 1
 +
|rt    = integer
 +
|rd    = id of the closest car of the specified radius/coordinates.
 
}}
 
}}
  
 
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.

Revision as of 07:02, 25 April 2010

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.