samp.directory
← IDs and reference

SA-MP animations

Every animation in the game: 1,871 in 134 libraries. Pick one to see it played in 3D on any skin, and copy the ApplyAnimation line that plays it.

PEDpass_Smoke_in_car

Length
1.73 s
Speed
ApplyAnimation(playerid, "PED", "pass_Smoke_in_car", 4.1, false, false, false, false, 0);

Using these in a script

ApplyAnimation(playerid, library, name, 4.1, loop, lockx, locky, freeze, time) plays one on a player, and everyone near them sees it. The library and the name are found whatever their case, and 4.1 is the number nearly every script passes. ClearAnimations(playerid) stops it.

An actor (made with CreateActor) plays one with ApplyActorAnimation, which takes the same but forcesync. Its library is loaded for each player who is to see it, not for the actor.

Names and lengths are read from the game’s own animation files. The animations belong to Rockstar Games and are shown for reference.

PED pass_Smoke_in_car: SA-MP animation in 3D | samp.directory