The Lab
TASK native

TASK_PLAY_ANIM_ADVANCED

returns void17 paramsbuild 1207

Plays animName from animDict on ped starting at the given position and rotation.

Signature

C
void TASK_PLAY_ANIM_ADVANCED(Ped ped, const char* animDict, const char* animName, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, float speed, float speedMultiplier, int duration, int flags, float p13, int p14, int p15, int p16); // 0x83CDB10EA29B370B b1207

Parameters

#NameType
1pedPed
2animDictconst char*
3animNameconst char*
4posXfloat
5posYfloat
6posZfloat
7rotXfloat
8rotYfloat
9rotZfloat
10speedfloat
11speedMultiplierfloat
12durationint
13flagsint
14p13float
15p14int
16p15int
17p16int

Facts

Facts about TASK_PLAY_ANIM_ADVANCED
Name
TASK_PLAY_ANIM_ADVANCED
Hash
0x83CDB10EA29B370B
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(0x83CDB10EA29B370B, -- TASK_PLAY_ANIM_ADVANCED
  PlayerPedId(), -- Ped ped
  "text", -- const char* animDict
  "text", -- const char* animName
  0.0, -- float posX
  0.0, -- float posY
  0.0, -- float posZ
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  0.0, -- float speed
  0.0, -- float speedMultiplier
  0, -- int duration
  0, -- int flags
  0.0, -- float p13
  0, -- int p14
  0, -- int p15
  0 -- int p16
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x83CDB10EA29B370B", // TASK_PLAY_ANIM_ADVANCED
  PlayerPedId(), // Ped ped
  "text", // const char* animDict
  "text", // const char* animName
  0.0, // float posX
  0.0, // float posY
  0.0, // float posZ
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  0.0, // float speed
  0.0, // float speedMultiplier
  0, // int duration
  0, // int flags
  0.0, // float p13
  0, // int p14
  0, // int p15
  0 // int p16
);
C#
Function.Call((Hash)0x83CDB10EA29B370B, // TASK_PLAY_ANIM_ADVANCED
  API.PlayerPedId(), // Ped ped
  "text", // const char* animDict
  "text", // const char* animName
  0.0f, // float posX
  0.0f, // float posY
  0.0f, // float posZ
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  0.0f, // float speed
  0.0f, // float speedMultiplier
  0, // int duration
  0, // int flags
  0.0f, // float p13
  0, // int p14
  0, // int p15
  0 // int p16
);
All TASK natives

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