MiloZoe Posted October 21, 2019 Share Posted October 21, 2019 Hi everyone. I am doing an animation in C#, but it is not synchronized when I play it. How should I solve this problem🤥? Link to comment Share on other sites More sharing options...
trolovecro Posted October 21, 2019 Share Posted October 21, 2019 where have you wrote your code? On client or server side? Link to comment Share on other sites More sharing options...
MiloZoe Posted October 22, 2019 Author Share Posted October 22, 2019 @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!!! Link to comment Share on other sites More sharing options...
trolovecro Posted October 22, 2019 Share Posted October 22, 2019 Can you post your code please? @MiloZoe Link to comment Share on other sites More sharing options...
MiloZoe Posted October 23, 2019 Author Share Posted October 23, 2019 Yes of course! This is one of my code@trolovecro NAPI.Player.PlayPlayerAnimation(client, 1, "amb@world_human_stand_fishing@idle_a", "idle_c"); Not synchronized when fishing. My friend can't see me fishing. @trolovecro I don't know how to solve it. Link to comment Share on other sites More sharing options...
Xabi Posted October 23, 2019 Share Posted October 23, 2019 I think you have to use AllowPlayerControl flag: https://wiki.gtanet.work/index.php?title=PlayPlayerAnimation Link to comment Share on other sites More sharing options...
MiloZoe Posted October 24, 2019 Author Share Posted October 24, 2019 Thank Xabi, it is normal. @Xabi Link to comment Share on other sites More sharing options...
MiloZoe Posted October 24, 2019 Author Share Posted October 24, 2019 (edited) @Xabi But it still does not perform animation when fishing. @XabiThis is my code. NAPI.Player.PlayPlayerAnimation(client, (int)Anim.animationFlags.AllowPlayerControl, "amb@world_human_stand_fishing@idle_a", "idle_c"); Edited October 24, 2019 by MiloZoe Link to comment Share on other sites More sharing options...
Xabi Posted October 24, 2019 Share Posted October 24, 2019 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, "amb@world_human_stand_fishing@idle_a", "idle_c"); Try playing with the flags, maybe you need AllowPlayerControl and Loop at the same time. Link to comment Share on other sites More sharing options...
MiloZoe Posted October 24, 2019 Author Share Posted October 24, 2019 @Xabi OK, I will give it a try. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now