The Lab
GRAPHICS native

ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH

returns BOOL4 paramsbuild 1207

Returns true if the post effect with stack hash effectNameHash has fired the event eventType.

Signature

C
BOOL ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH(Hash effectNameHash, int eventType, BOOL bPeekOnly, BOOL* bIsRegistered); // 0x9AB192A9EF980EED b1207

Parameters

#NameType
1effectNameHashHash
2eventTypeint
3bPeekOnlyBOOL
4bIsRegisteredBOOL* (out pointer)

Facts

Facts about ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH
Name
ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH
Hash
0x9AB192A9EF980EED
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, bIsRegistered = Citizen.InvokeNative(0x9AB192A9EF980EED, -- ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH
  GetHashKey("name"), -- Hash effectNameHash
  0, -- int eventType
  false, -- BOOL bPeekOnly
  Citizen.PointerValueInt(), -- BOOL* bIsRegistered
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, bIsRegistered] = Citizen.invokeNative("0x9AB192A9EF980EED", // ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH
  GetHashKey("name"), // Hash effectNameHash
  0, // int eventType
  false, // BOOL bPeekOnly
  Citizen.pointerValueInt(), // BOOL* bIsRegistered
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var bIsRegisteredArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x9AB192A9EF980EED, // ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH
  (uint)API.GetHashKey("name"), // Hash effectNameHash
  0, // int eventType
  false, // BOOL bPeekOnly
  bIsRegisteredArg // BOOL* bIsRegistered
);
bool bIsRegistered = bIsRegisteredArg.GetResult<bool>();
All GRAPHICS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.