C# proper way to get List of All nearby PEDS

Hello everyone,

i’ve tried many different way to get ALL peds in range of my player but nothing work as i intend.

every things i tried get me one ped (the closest) , when i tried with few different capsule it gave me the few ped i detect but not all in that range.

i have seen some function who is doing the job but on other framework, so i wonder wich native they use.

if someone have any idea who can help me on this , i will be thanksfull !!

1 Like

Did you find any solution to this without looping through ALL Peds in the world? GetClosestPed works but only for walking Peds