FIND_ANIM_EVENT_PHASE
Hash
0x42718CC559BD7776Runtime name
FindAnimEventPhaseNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x07F1BE2BCCAA27A7Signature
BOOL FIND_ANIM_EVENT_PHASE(const char* animDictionary, const char* animName, const char* p2, Any* p3, Any* p4);Parameters
| Name | Type | Description |
|---|---|---|
animDictionary | const char* | — |
animName | const char* | — |
p2 | const char* | — |
p3 | Any* | — |
p4 | Any* | — |
Returns BOOL
Usage
local retval, p3, p4 = FindAnimEventPhase(animDictionary, animName, p2)
-- always works, by hash
local retval, p3, p4 = Citizen.InvokeNative(0x42718CC559BD7776, animDictionary, animName, p2, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, p3, p4] = FindAnimEventPhase(animDictionary, animName, p2);
// by hash
const [retval, p3, p4] = Citizen.invokeNative('0x42718CC559BD7776', animDictionary, animName, p2, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.returnResultAnyway());var p3 = new OutputArgument();
var p4 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x42718CC559BD7776, animDictionary, animName, p2, p3, p4);
// p3.GetResult<int>()
// p4.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.