GetRandomVehicleInSphere — FiveM Natives
0x386F6CE5BAF6091C · VEHICLE · all
`` Gets a random vehicle in a sphere at the specified position, of the specified radius. x: The X-component of the position of the sphere. y: The Y-component of the position of the sphere. z: The Z-component of the position of the sphere. radius: The radius of the sphere. Max is 9999.9004. modelHash: The vehicle model to limit the selection to. Pass 0 for any model. flags: The bitwise flags that modifies the behaviour of this function. ``
Parameters
| Name | Type |
|---|---|
| x | float |
| y | float |
| z | float |
| radius | float |
| modelHash | Hash |
| flags | int |
Returns
Vehicle