Code gets people out of his car
alejandro2016 opened this issue · comments
And stop his animation while walking, actually any animation.
NAPI.Player.StopPlayerAnimation(speakingClient.Player);
Had to remove it and workaround
This is a known issue, because the Bridge uses a task clear method to stop normal animations, but this also cancels the task to drive a vehicle.
The only way to solve this, is to overwrite it with a different animation, or implement a custom solution. The resource JustAnotherVoiceChat.Server.RageMP.Resource
is only a demonstration.
just change that line in resource to:
NAPI.Player.PlayPlayerAnimation(speakingClient.Player, (int)(0 | AnimationFlag.AllowRotation), "mp_facial", "mic_chatter");
By that you will fix "clear method" without any notable impact in visual effects ingame.