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,20 @@
### lib.getClosestPlayer
Get the id, ped, and coords of the closest player to a set of coordinates.
```lua
lib.getClosestPlayer(coords, maxDistance, includePlayer)
```
* coords: `vector3`
* The coords to check from.
* maxDistance: `number`
* The max distance to check.
* includePlayer: `boolean`
* Whether or not to include the current player.
Return:
* playerId?: `number`
* playerPed?: `number`
* playerCoords?: `vector3`