RedM Natives

TASK_PLAY_ANIM

Hash0xEA47FE3719165B94
Runtime nameTaskPlayAnim
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xEA47FE3719165B94

Signature

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

Parameters

NameTypeDescription
pedPed—
animDictconst char*—
animNameconst char*—
speedfloat—
speedMultiplierfloat—
durationint—
flagsint—
playbackRatefloat—
p8BOOL—
ikFlagsint—
p10BOOL—
taskFilterconst char*—
p12BOOL—

Returns void

Description

alloc8or RDR3 NativeDB

https://github.com/femga/rdr3_discoveries/tree/master/animations
flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eScriptedAnimFlags
ikFlags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eIkControlFlags

VORPCORE RDR3natives

https://github.com/femga/rdr3_discoveries/tree/master/animations

flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eScriptedAnimFlags

ikFlags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eIkControlFlags

animFilters: https://pastebin.com/1sGhKVvS

Usage

Lua
TaskPlayAnim(ped, animDict, animName, speed, speedMultiplier, duration, flags, playbackRate, p8, ikFlags, p10, taskFilter, p12)

-- always works, by hash
Citizen.InvokeNative(0xEA47FE3719165B94, ped, animDict, animName, speed, speedMultiplier, duration, flags, playbackRate, p8, ikFlags, p10, taskFilter, p12)
JavaScript and C#
JavaScript
TaskPlayAnim(ped, animDict, animName, speed, speedMultiplier, duration, flags, playbackRate, p8, ikFlags, p10, taskFilter, p12);

// by hash
Citizen.invokeNative('0xEA47FE3719165B94', ped, animDict, animName, speed + 0.0000001, speedMultiplier + 0.0000001, duration, flags, playbackRate + 0.0000001, p8, ikFlags, p10, taskFilter, p12);
C#
Function.Call((Hash)0xEA47FE3719165B94, ped, animDict, animName, speed, speedMultiplier, duration, flags, playbackRate, p8, ikFlags, p10, taskFilter, p12);
  • 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 · VORPCORE RDR3natives

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