RedM Natives

ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH

Hash0x9AB192A9EF980EED
Runtime nameAnimpostfxHasEventTriggeredByStackhash
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH(Hash effectNameHash, int eventType, BOOL bPeekOnly, BOOL* bIsRegistered);

Parameters

NameTypeDescription
effectNameHashHash—
eventTypeint—
bPeekOnlyBOOL—
bIsRegisteredBOOL*—

Returns BOOL

Usage

Lua
local retval, bIsRegistered = AnimpostfxHasEventTriggeredByStackhash(effectNameHash, eventType, bPeekOnly, bIsRegistered)

-- always works, by hash
local retval, bIsRegistered = Citizen.InvokeNative(0x9AB192A9EF980EED, effectNameHash, eventType, bPeekOnly, Citizen.PointerValueInt() --[[ BOOL* ]], Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, bIsRegistered] = AnimpostfxHasEventTriggeredByStackhash(effectNameHash, eventType, bPeekOnly, bIsRegistered);

// by hash
const [retval, bIsRegistered] = Citizen.invokeNative('0x9AB192A9EF980EED', effectNameHash, eventType, bPeekOnly, Citizen.pointerValueInt() /* BOOL* */, Citizen.returnResultAnyway());
C#
var bIsRegistered = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x9AB192A9EF980EED, effectNameHash, eventType, bPeekOnly, bIsRegistered);
// bIsRegistered.GetResult<bool>()
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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