This commit is contained in:
Luke committed 2023-06-04 15:15:21 +02:00
1 parent 3cebaf7fa5
commit b5eba8423f
229 files changed
+6238 -10690

No files matched your search

@@ -0,0 +1,18 @@
### lib.getNearbyVehicles
Get the id and coords of all vehicles within range of a set of coordinates.
```lua
lib.getNearbyVehicles(coords, maxDistance, includePlayerVehicle)
```
* coords: `vector3`
* The coords to check from.
* maxDistance: `number`
* The max distance to check.
* includePlayerVehicle: `boolean`
* Whether or not to include the player's current vehicle.
Return:
* `{ vehicle: number, coords: vector3 }[]`