mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
17 lines
309 B
Markdown
17 lines
309 B
Markdown
### lib.getNearbyPeds
|
|
|
|
Get the ped handle and coords of all peds within range of a set of coordinates.
|
|
|
|
```lua
|
|
lib.getNearbyPeds(coords, maxDistance)
|
|
```
|
|
|
|
* coords: `vector3`
|
|
* The coords to check from.
|
|
* maxDistance: `number`
|
|
* The max distance to check.
|
|
|
|
Return:
|
|
|
|
* `{ ped: number, coords: vector3 }[]`
|