Take Ped NPC Nearby Player

Regards,

I am trying to trigger npc close to me, for example for all npc’s to attack me in a certain time. How can I collect in a table all npc at certain meters?

Thank you!

http://runtime.fivem.net/doc/reference.html#_0x23F8F5FC7E8C4A6B
Here a native which probably would help you

Yes, i tried, but not work, any idea?

What isn’t working ?

I think GetPedNearbyPeds not work in lua :S

Then try in C# ^^ (idk if it would work)