RedM Natives

TASK_PLAY_ANIM_ADVANCED

Hash0x83CDB10EA29B370B
Runtime nameTaskPlayAnimAdvanced
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x83CDB10EA29B370B

Signature

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);

Parameters

NameTypeDescription
pedPed—
animDictconst char*—
animNameconst char*—
posXfloat—
posYfloat—
posZfloat—
rotXfloat—
rotYfloat—
rotZfloat—
speedfloat—
speedMultiplierfloat—
durationint—
flagsint—
p13float—
p14int—
p15int—
p16int—

Returns void

Description

flags: see TASK_PLAY_ANIM
ikFlags: see TASK_PLAY_ANIM

Usage

Lua
TaskPlayAnimAdvanced(ped, animDict, animName, posX, posY, posZ, rotX, rotY, rotZ, speed, speedMultiplier, duration, flags, p13, p14, p15, p16)

-- always works, by hash
Citizen.InvokeNative(0x83CDB10EA29B370B, ped, animDict, animName, posX, posY, posZ, rotX, rotY, rotZ, speed, speedMultiplier, duration, flags, p13, p14, p15, p16)
JavaScript and C#
JavaScript
TaskPlayAnimAdvanced(ped, animDict, animName, posX, posY, posZ, rotX, rotY, rotZ, speed, speedMultiplier, duration, flags, p13, p14, p15, p16);

// by hash
Citizen.invokeNative('0x83CDB10EA29B370B', ped, animDict, animName, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, speed + 0.0000001, speedMultiplier + 0.0000001, duration, flags, p13 + 0.0000001, p14, p15, p16);
C#
Function.Call((Hash)0x83CDB10EA29B370B, ped, animDict, animName, posX, posY, posZ, rotX, rotY, rotZ, speed, speedMultiplier, duration, flags, p13, p14, p15, p16);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.