PLAY_ENTITY_ANIM
Hash
0xDC6D22FAB76D4874Runtime name
PlayEntityAnimNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x7FB218262B810701Signature
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
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
animName | const char* | — |
animDict | const char* | — |
p3 | float | — |
loop | BOOL | — |
stayInAnim | BOOL | — |
p6 | BOOL | — |
delta | float | — |
bitset | Any | — |
Returns BOOL
Description
https://github.com/femga/rdr3_discoveries/tree/master/animations
Usage
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#
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());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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
STOP_ENTITY_ANIMDoesn't actually return anything.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.