Difference between revisions of "GET RANDOM CAR IN SPHERE"

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 10: Line 10:
 
|p4d    = Radius
 
|p4d    = Radius
 
|p5t    = integer
 
|p5t    = integer
|p5d    = Model [[List_of_models_hashes|hash]]
+
|p5d    = Model [[List_of_models_hashes|hash]] (actually 0, but you can pick hash of car model)
 
|p6t    = integer
 
|p6t    = integer
 
|p6d    = Unknown (usually 2310)
 
|p6d    = Unknown (usually 2310)

Latest revision as of 04:32, 1 February 2015

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 )