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.getNearbyPlayers
Get the id, ped, and coords of all players within range of a set of coordinates.
```lua
lib.getNearbyPlayers(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:
* `{ id: number, ped: number, coords: vector3 }[]`