Jump to content

TASK_PLAY_ANIM


Native Details

  • NameTASK_PLAY_ANIM
  • NamespaceTASK
  • Native Hash0xEA47FE3719165B94
  • Typevoid
  • First seen version1207

Native Parameters

DESCRIPTION

There is no description yet for this native, why not edit it and add one?


User Feedback

Recommended Comments

Example Use in C#:
 

public static async void PlayClipset(string dict, string anim, int flag, int duration = -1)
        {
            // PlayClipset("mech_loco_m@generic@reaction@handsup@unarmed@tough", "loop", 31);
            // https://rdr2.mooshe.tv/animations/
            API.RequestAnimDict(dict);
            while (!API.HasAnimDictLoaded(dict))
            {
                await BaseScript.Delay(100);
            }

            if (API.IsEntityPlayingAnim(API.PlayerPedId(), dict, anim, 3))
                API.ClearPedSecondaryTask(API.PlayerPedId());
            else
                Function.Call(Hash.TASK_PLAY_ANIM, API.PlayerPedId(), dict, anim, 1.0f, 8.0f, duration, flag, 0, true, 0, false, 0, false);
        }

 

  • Like 1
Link to comment
Share on other sites



Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Red Dead Redemption 2 Native Database by www.mod-rdr.com, includes contributions by gudmunduro and alloc8or.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...