Files
overextended.github.io/docs/ox_lib/Modules/GetNearbyPeds/Client.md
T

309 B

lib.getNearbyPeds

Get the ped handle and coords of all peds within range of a set of coordinates.

lib.getNearbyPeds(coords, maxDistance)
  • coords: vector3
    • The coords to check from.
  • maxDistance: number
    • The max distance to check.

Return:

  • { ped: number, coords: vector3 }[]