Difference between revisions of "GET CLOSEST CAR"
								
								Jump to navigation
				Jump to search
				
				
		
					
								
							
		| FiddleSticks (talk | contribs) | Impediment (talk | contribs)  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
| Number of parameters: 6 | ||
|---|---|---|
| Parameter # | Type | Description | 
| 1. | float | X-Coordinate | 
| 2. | float | Y-Coordinate | 
| 3. | float | Z-Coordinate | 
| 4. | float | Radius | 
| 5. | integer | Unknown (usually 0) | 
| 6. | integer | Unknown (usually 70) | 
| Return value: | ||
| Type | Description | |
| integer | id 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.

