TASK_PLAY_ANIM_ADVANCED
Hash
0x83CDB10EA29B370BRuntime name
TaskPlayAnimAdvancedNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x83CDB10EA29B370BSignature
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
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
animDict | const char* | — |
animName | const char* | — |
posX | float | — |
posY | float | — |
posZ | float | — |
rotX | float | — |
rotY | float | — |
rotZ | float | — |
speed | float | — |
speedMultiplier | float | — |
duration | int | — |
flags | int | — |
p13 | float | — |
p14 | int | — |
p15 | int | — |
p16 | int | — |
Returns void
Description
flags: see TASK_PLAY_ANIM
ikFlags: see TASK_PLAY_ANIM
Usage
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#
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);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eEulerRotationOrder 6 values
- eIkControlFlags 31 values
- eScriptedAnimFlags 32 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.