I am working on a zombie mod, and I am having a problem with the PEDs chasing. If more than 3 PEDs are chasing me, then the rest of the PEDs will just stand still and look at me. Any help or ideas are appreciated.
I think you can use this : https://runtime.fivem.net/doc/reference.html#_0xF166E48407BAC484
https://runtime.fivem.net/doc/reference.html#_0x4859F1FC66A6278E
Thanks for the response Kyominii. Oddly the PEDs that aren’t chasing me are returning true for IsPedInCombat. I did a check to see if they are in combat but not moving, and then set their combat task again. That did not work. ForcePedMotionState helped a little, but it is far from perfect.