GraphicsClient

animpostfxIsRunning

ANIMPOSTFX_IS_RUNNING0x36AD3E690DA5ACEB

The GTA V native ANIMPOSTFX_IS_RUNNING of the GRAPHICS namespace, as LS:MP client scripts call it: the global function animpostfxIsRunning, in JavaScript and in Lua.

SignatureJavaScript
animpostfxIsRunning(effectName: string): boolean
SignatureLua
animpostfxIsRunning(effectName: string): boolean

Usage

JavaScript
const result = animpostfxIsRunning(effectName);
Lua
local result = animpostfxIsRunning(effectName)

Parameters

ParameterTypeJavaScriptLua
effectNamestringstringstring

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns whether the specified effect is active.
See animpostfxPlay

Full list of animpostFX / screen effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animPostFxNamesCompact.json

Reference

Namespace
Graphics GRAPHICS
In the game
BOOL ANIMPOSTFX_IS_RUNNING(const char* effectName)
Hash
0x36AD3E690DA5ACEB
Formerly
_GET_SCREEN_EFFECT_IS_ACTIVE

Open in the interactive natives reference