GET RANDOM CAR IN SPHERE

From GTAMods Wiki
Jump to navigation Jump to search
GET_RANDOM_CAR_IN_SPHERE
Number of parameters: 6
Parameter #TypeDescription
1.floatX-Coordinate
2.floatY-Coordinate
3.floatZ-Coordinate
4.floatRadius
5.integerModel hash (actually 0, but you can pick hash of car model)
6.integerUnknown (usually 2310)
Return value:
TypeDescription
unknownid of the car

This function returns the random car in the specified radius, with the specified hash.


Note: Example: GET_RANDOM_CAR_IN_SPHERE( x, y, z, 30.0000, -956048545, 2310, &uReturnedCar )