GET RANDOM CAR IN SPHERE NO SAVE

From GTAMods Wiki
Revision as of 22:46, 30 March 2015 by FL1K3R (talk | contribs) (Created page with "{{Native |np = 7 |p1t = float |p1d = X-Coordinate |p2t = float |p2d = Y-Coordinate |p3t = float |p3d = Z-Coordinate |p4t = float |p4d = Radius |p5t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GET_RANDOM_CAR_IN_SPHERE_NO_SAVE
Number of parameters: 7
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 1)
7.integerid of the car
Return value:
TypeDescription
None

This function returns the random car in the specified radius, with the specified hash.
For example: GET_RANDOM_CAR_IN_SPHERE_NO_SAVE(100.0,-250.0,7.61,50.0,1264341792, 1, &CarInSphere) - will return you vehicle with model of Admiral.
Note: If Parameter 5 will be set up on 0 - this native will be search through all vehicle models.