# GRAPHICS::ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH

- **Hash:** `0x9AB192A9EF980EED`
- **Namespace:** GRAPHICS
- **Runtime name (Lua/JS):** `AnimpostfxHasEventTriggeredByStackhash`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/GRAPHICS/ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH

## Signature

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

## Parameters

- `effectNameHash` (`Hash`)
- `eventType` (`int`)
- `bPeekOnly` (`BOOL`)
- `bIsRegistered` (`BOOL*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval, bIsRegistered = AnimpostfxHasEventTriggeredByStackhash(effectNameHash, eventType, bPeekOnly, bIsRegistered)

-- always available, by hash
local retval, bIsRegistered = Citizen.InvokeNative(0x9AB192A9EF980EED, effectNameHash, eventType, bPeekOnly, Citizen.PointerValueInt() --[[ BOOL* ]], Citizen.ReturnResultAnyway())
```

### JavaScript

```js
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#

```csharp
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.

## Related enums

- [AnimPostFXEventType](https://natives.borderlinerp.com/enums/AnimPostFXEventType.md) — 8 values

*Sources: alloc8or RDR3 NativeDB.*
