Animations TutorialThis is a tutorial by me (DarkHero) to play an animation in Grand Theft Auto V The Steps are below:
Natives.h -
http://www.dev-c.com/nativedb/ and click on natives.h.
Step 1. Download Natives.h from Narive DB Above
Step 2. Go to script.cpp
Step 3. Use this as a template:
STREAMING::REQUEST_ANIM_DICT("amb@code_human_cower@male@base");
while (!STREAMING::HAS_ANIM_DICT_LOADED("amb@code_human_cower@male@base"))
WAIT(0);
AI::TASK_PLAY_ANIM(playerPed, "amb@code_human_cower@male@base", "base", 8.0, 0.0, -1, 0, 0, 0, 0, 0);
break; This will play the animation in a case option for example like in the Native Trainer Base.
All you need to do is change this lines
"amb@code_human_cower@male@base" to whatever animation you want and the "base" bit is where you put the other part of the animation.
All the animations in the game are below also if you need any help with this or its not working for you please comment your problem below with your source code.
Animations List (AnimationsList.txt) -
https://www.dropbox.com/home?preview=FullAnimationsList.txt Enjoy!
Any Problems you have or any requests just comment down below.
Hope This Tutorial Helped, Thanks.