STOP_ENTITY_ANIM
Doesn't actually return anything.
Hash
0x786591D986DE9159Runtime name
StopEntityAnimNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x28004F88151E03E0Signature
BOOL STOP_ENTITY_ANIM(Entity entity, const char* animation, const char* animGroup, float p3);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
animation | const char* | — |
animGroup | const char* | — |
p3 | float | — |
Returns BOOL
Description
Doesn't actually return anything.
Usage
local retval = StopEntityAnim(entity, animation, animGroup, p3)
-- always works, by hash
local retval = Citizen.InvokeNative(0x786591D986DE9159, entity, animation, animGroup, p3, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = StopEntityAnim(entity, animation, animGroup, p3);
// by hash
const retval = Citizen.invokeNative('0x786591D986DE9159', entity, animation, animGroup, p3 + 0.0000001, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x786591D986DE9159, entity, animation, animGroup, p3);- 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
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.