I am having an issue with the Ped.Tasks.PlayAnimation method.
I have tried:
myPed.Tasks.PlayAnimation("mini@cpr@char_b@cpr_str", "cpr_success", 4f, AnimationFlags.None).WaitForCompletion();
GameFiber.StartNew(delegate
{
myPed.Tasks.PlayAnimation("mini@cpr@char_b@cpr_str", "cpr_success", 4f, AnimationFlags.None).WaitForCompletion();
});
and
myPed.Tasks.PlayAnimation("amb@world_human_bum_standing@drunk@idle_a", "idle_a", 15000, AnimationFlags.Loop);
myPed.Tasks.PlayAnimation("amb@medic@standing@tendtodead@idle_a", "idle_b", 5, AnimationFlags.None);
Here is the error I get:
https://i.imgur.com/osTKAQB.png
I'm not sure why it's doing this. Everything I have read says it should work? Keep in mind I am new to GTAV modding but not to programming in general.
Thanks.