hey first of all i get the npc from random coord and it work. and when i try to apply his animation it’s working too but it work only for me… and other people can’t see that npc playing anim.
Anyway to make Randomped npc sync anim to all player?
Thank you
try NetworkRequestControlOfNetworkId(PedToNet(Entity)) ?
yes, it not work by somehow idk,
I just get the ped which i doesn’t create it… i get the ped frome getrandomped at coord
Still not solve anyone know how to sync the random ped animation please help me
NetworkRequestControlOfNetworkId not sync my npc animation to all player also… and i already set entity as mission entity
So we have a drug sale script that the player plays a animation and the npc returns a animation… and if you do not pass along the id of hte npc to everyone around and have them play it they will not see it. So before you start the animation on the ped… you get its networkid… then pass that to the server… that passes it back to every client script to use NetworkGetEntityFromNetworkId and then make each client have that entity play the animation. I have it setup so it also checks the distance where the first person was that sent the ID to the server… so if they are over 25m from the person playing the animation it doesn’t worry about it… but this should give you an idea of how to make syn’d animations play.
2 Likes