GET RANDOM CAR IN SPHERE NO SAVE
Jump to navigation
Jump to search
Number of parameters: 7 | ||
---|---|---|
Parameter # | Type | Description |
1. | float | X-Coordinate |
2. | float | Y-Coordinate |
3. | float | Z-Coordinate |
4. | float | Radius |
5. | integer | Model hash (actually 0, but you can pick hash of car model) |
6. | integer | Unknown (usually 1) |
7. | integer | id of the car |
Return value: | ||
Type | Description | |
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.