Why are you guys responding to a post from 5 years ago ? 0_0
image

Also doing this
image
Is bad as if for any reason your ped change, your code will just not work anymore.
If for any reason people want to know how to make this optimised now 5 years later, just make 2 thread. 1 slow handling the positions checks ( something like every 1-2s depending on the use case is fine ), and an other more fast one handling the draw only that should be slowed down when no one is NetworkIsPlayerTalking.

2 Likes