ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH
Hash
0x9AB192A9EF980EEDRuntime name
AnimpostfxHasEventTriggeredByStackhashNamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH(Hash effectNameHash, int eventType, BOOL bPeekOnly, BOOL* bIsRegistered);Parameters
| Name | Type | Description |
|---|---|---|
effectNameHash | Hash | — |
eventType | int | — |
bPeekOnly | BOOL | — |
bIsRegistered | BOOL* | — |
Returns BOOL
Usage
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#
const [retval, bIsRegistered] = AnimpostfxHasEventTriggeredByStackhash(effectNameHash, eventType, bPeekOnly, bIsRegistered);
// by hash
const [retval, bIsRegistered] = Citizen.invokeNative('0x9AB192A9EF980EED', effectNameHash, eventType, bPeekOnly, Citizen.pointerValueInt() /* BOOL* */, Citizen.returnResultAnyway());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.InvokeNativeneeds the number — passjoaat("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
- AnimPostFXEventType 8 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.