RedM Natives

FIND_ANIM_EVENT_PHASE

Hash0x42718CC559BD7776
Runtime nameFindAnimEventPhase
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x07F1BE2BCCAA27A7

Signature

BOOL FIND_ANIM_EVENT_PHASE(const char* animDictionary, const char* animName, const char* p2, Any* p3, Any* p4);

Parameters

NameTypeDescription
animDictionaryconst char*—
animNameconst char*—
p2const char*—
p3Any*—
p4Any*—

Returns BOOL

Usage

Lua
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#
JavaScript
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());
C#
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

alloc8or RDR3 NativeDB

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