MiloZoe 0 Posted October 21 Hi everyone. I am doing an animation in C#, but it is not synchronized when I play it. How should I solve this problem🤥? Share this post Link to post Share on other sites
trolovecro 3 Posted October 21 where have you wrote your code? On client or server side? Share this post Link to post Share on other sites
MiloZoe 0 Posted October 22 @trolovecro Yes, I use the server @trolovecro I found that C#'s NAPI.Player.PlayPlayerAnimation will crash and pause the player action. Do you have a good way to solve this problem? Thank you!!! Share this post Link to post Share on other sites
trolovecro 3 Posted October 22 Can you post your code please? @MiloZoe Share this post Link to post Share on other sites
MiloZoe 0 Posted October 23 Yes of course! This is one of my code@trolovecro NAPI.Player.PlayPlayerAnimation(client, 1, "[email protected][email protected]_a", "idle_c"); Not synchronized when fishing. My friend can't see me fishing. @trolovecro I don't know how to solve it. Share this post Link to post Share on other sites
Xabi 143 Posted October 23 I think you have to use AllowPlayerControl flag: https://wiki.gtanet.work/index.php?title=PlayPlayerAnimation Share this post Link to post Share on other sites
MiloZoe 0 Posted October 24 Thank Xabi, it is normal. @Xabi Share this post Link to post Share on other sites
MiloZoe 0 Posted October 24 (edited) @Xabi But it still does not perform animation when fishing. @XabiThis is my code. NAPI.Player.PlayPlayerAnimation(client, (int)Anim.animationFlags.AllowPlayerControl, "[email protected][email protected]_a", "idle_c"); Edited October 24 by MiloZoe Share this post Link to post Share on other sites
Xabi 143 Posted October 24 31 minutes ago, MiloZoe said: @Xabi But it still does not perform animation when fishing. @XabiThis is my code. NAPI.Player.PlayPlayerAnimation(client, (int)Anim.animationFlags.AllowPlayerControl, "[email protected][email protected]_a", "idle_c"); Try playing with the flags, maybe you need AllowPlayerControl and Loop at the same time. Share this post Link to post Share on other sites
MiloZoe 0 Posted October 24 @Xabi OK, I will give it a try. Share this post Link to post Share on other sites