ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH
Returns true if the post effect with stack hash effectNameHash has fired the event eventType.
Signature
BOOL ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH(Hash effectNameHash, int eventType, BOOL bPeekOnly, BOOL* bIsRegistered); // 0x9AB192A9EF980EED b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | effectNameHash | Hash |
| 2 | eventType | int |
| 3 | bPeekOnly | BOOL |
| 4 | bIsRegistered | BOOL* (out pointer) |
Facts
| 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.
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
-- ...
endconst [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) {
// ...
}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>();Related GRAPHICS natives
- ANIMPOSTFX_IS_PRELOADING_BY_STACKHASH
- _ANIMPOSTFX_HAS_EVENT_TRIGGERED
- _ANIMPOSTFX_PRELOAD_POSTFX_BY_STACKHASH
- ANIMPOSTFX_IS_RUNNING
- ANIMPOSTFX_PLAY
- ANIMPOSTFX_STOP
- ANIMPOSTFX_STOP_ALL
- _ANIMPOSTFX_GET_STACKHASH
- _ANIMPOSTFX_HAS_LOADED
- _ANIMPOSTFX_IS_STACKHASH_PLAYING
- _ANIMPOSTFX_STOP_STACKHASH_POSTFX
- _ANIMPOSTFX_CLEAR_EFFECT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.