The Lab
TASK native

TASK_PLAY_ANIM

returns void13 paramsbuild 1207

Plays the animation animName from animDict on ped with the given blend speeds, duration and flags.

Load the dictionary first with REQUEST_ANIM_DICT.

Signature

C
void TASK_PLAY_ANIM(Ped ped, const char* animDict, const char* animName, float speed, float speedMultiplier, int duration, int flags, float playbackRate, BOOL p8, int ikFlags, BOOL p10, const char* taskFilter, BOOL p12); // 0xEA47FE3719165B94 b1207

Parameters

#NameType
1pedPed
2animDictconst char*
3animNameconst char*
4speedfloat
5speedMultiplierfloat
6durationint
7flagsint
8playbackRatefloat
9p8BOOL
10ikFlagsint
11p10BOOL
12taskFilterconst char*
13p12BOOL

Facts

Facts about TASK_PLAY_ANIM
Name
TASK_PLAY_ANIM
Hash
0xEA47FE3719165B94
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xEA47FE3719165B94, -- TASK_PLAY_ANIM
  PlayerPedId(), -- Ped ped
  "text", -- const char* animDict
  "text", -- const char* animName
  0.0, -- float speed
  0.0, -- float speedMultiplier
  0, -- int duration
  0, -- int flags
  0.0, -- float playbackRate
  false, -- BOOL p8
  0, -- int ikFlags
  false, -- BOOL p10
  "text", -- const char* taskFilter
  false -- BOOL p12
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xEA47FE3719165B94", // TASK_PLAY_ANIM
  PlayerPedId(), // Ped ped
  "text", // const char* animDict
  "text", // const char* animName
  0.0, // float speed
  0.0, // float speedMultiplier
  0, // int duration
  0, // int flags
  0.0, // float playbackRate
  false, // BOOL p8
  0, // int ikFlags
  false, // BOOL p10
  "text", // const char* taskFilter
  false // BOOL p12
);
C#
Function.Call((Hash)0xEA47FE3719165B94, // TASK_PLAY_ANIM
  API.PlayerPedId(), // Ped ped
  "text", // const char* animDict
  "text", // const char* animName
  0.0f, // float speed
  0.0f, // float speedMultiplier
  0, // int duration
  0, // int flags
  0.0f, // float playbackRate
  false, // BOOL p8
  0, // int ikFlags
  false, // BOOL p10
  "text", // const char* taskFilter
  false // BOOL p12
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.