mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
move ox_lib modules to subdirectory
This commit is contained in:
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`
|
||||
Reference in new issue
Block a user