ped dont stop following me when i use ClearPedTasksImmediately()
i used TaskFollowToOffsetOfEntity() for following task
does anyone know why?
ped dont stop following me when i use ClearPedTasksImmediately()
i used TaskFollowToOffsetOfEntity() for following task
does anyone know why?
Use ClearPedTasks or TaskStandStill
i tested these before
ClearPedTasks() didn’t work too and TaskStandStill() ped stop but when the time is up ped start following me
Then you are doing something wrong, probably TaskFollowToOffsetOfEntity() is used in a loop or used multiple times and and overwrites previous task. Without seeing the code I cant help you anymore.
Thank you for your answer
I used Ped variable like this tonumber(Ped) and its fixed