MiloZoe Posted October 21, 2019 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🤥?
trolovecro Posted October 21, 2019 Posted October 21, 2019 where have you wrote your code? On client or server side?
MiloZoe Posted October 22, 2019 Author 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!!!
MiloZoe Posted October 23, 2019 Author 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.
Xabi Posted October 23, 2019 Posted October 23, 2019 I think you have to use AllowPlayerControl flag: https://wiki.gtanet.work/index.php?title=PlayPlayerAnimation
MiloZoe Posted October 24, 2019 Author 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
Xabi Posted October 24, 2019 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.
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