move ox_lib modules to subdirectory

This commit is contained in:
Linden committed 2023-05-22 17:18:43 +10:00
1 parent 97b129e0fa
commit ba094e1fb3
42 files changed
+1 -1

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 }[]`