RedM Natives

PLAY_ENTITY_ANIM

Hash0xDC6D22FAB76D4874
Runtime namePlayEntityAnim
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7FB218262B810701

Signature

BOOL PLAY_ENTITY_ANIM(Entity entity, const char* animName, const char* animDict, float p3, BOOL loop, BOOL stayInAnim, BOOL p6, float delta, Any bitset);

Parameters

NameTypeDescription
entityEntity—
animNameconst char*—
animDictconst char*—
p3float—
loopBOOL—
stayInAnimBOOL—
p6BOOL—
deltafloat—
bitsetAny—

Returns BOOL

Description

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

Usage

Lua
local retval = PlayEntityAnim(entity, animName, animDict, p3, loop, stayInAnim, p6, delta, bitset)

-- always works, by hash
local retval = Citizen.InvokeNative(0xDC6D22FAB76D4874, entity, animName, animDict, p3, loop, stayInAnim, p6, delta, bitset, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = PlayEntityAnim(entity, animName, animDict, p3, loop, stayInAnim, p6, delta, bitset);

// by hash
const retval = Citizen.invokeNative('0xDC6D22FAB76D4874', entity, animName, animDict, p3 + 0.0000001, loop, stayInAnim, p6, delta + 0.0000001, bitset, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xDC6D22FAB76D4874, entity, animName, animDict, p3, loop, stayInAnim, p6, delta, bitset);
  • 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.

See also

Sources

alloc8or RDR3 NativeDB

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