News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Animations Tutorial  (Read 3403 times)

0 Members and 1 Guest are viewing this topic.

Offline DarkHero

  • Developer
  • Full Member
  • ***
  • Posts: 155
  • Gender: Male
  • Bully Modder
    • View Profile
Animations Tutorial
« on: January 07, 2016, 04:03:01 PM »
Animations Tutorial


This 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!  ;D
Any Problems you have or any requests just comment down below.
Hope This Tutorial Helped, Thanks.  :P
« Last Edit: January 08, 2016, 08:30:03 AM by DarkHero »