FIND_ANIM_EVENT_PHASE
Looks up the phase of a named event within an animation and writes it to the output pointers. Returns true if found.
Signature
BOOL FIND_ANIM_EVENT_PHASE(const char* animDictionary, const char* animName, const char* p2, Any* p3, Any* p4); // 0x42718CC559BD7776 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | animDictionary | const char* |
| 2 | animName | const char* |
| 3 | p2 | const char* |
| 4 | p3 | Any* (out pointer) |
| 5 | p4 | Any* (out pointer) |
Facts
| Name | FIND_ANIM_EVENT_PHASE |
|---|---|
| Hash | 0x42718CC559BD7776 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, p3, p4 = Citizen.InvokeNative(0x42718CC559BD7776, -- FIND_ANIM_EVENT_PHASE
"text", -- const char* animDictionary
"text", -- const char* animName
"text", -- const char* p2
Citizen.PointerValueInt(), -- Any* p3
Citizen.PointerValueInt(), -- Any* p4
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, p3, p4] = Citizen.invokeNative("0x42718CC559BD7776", // FIND_ANIM_EVENT_PHASE
"text", // const char* animDictionary
"text", // const char* animName
"text", // const char* p2
Citizen.pointerValueInt(), // Any* p3
Citizen.pointerValueInt(), // Any* p4
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var p3Arg = new OutputArgument();
var p4Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x42718CC559BD7776, // FIND_ANIM_EVENT_PHASE
"text", // const char* animDictionary
"text", // const char* animName
"text", // const char* p2
p3Arg, // Any* p3
p4Arg // Any* p4
);
int p3 = p3Arg.GetResult<int>();
int p4 = p4Arg.GetResult<int>();Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.