GraphicsClient

animpostfxGetCurrentTime

ANIMPOSTFX_GET_CURRENT_TIME0xE35B38A27E8E7179

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

SignatureJavaScript
animpostfxGetCurrentTime(effectName: string): number
SignatureLua
animpostfxGetCurrentTime(effectName: string): number

Usage

JavaScript
const value = animpostfxGetCurrentTime(effectName);
Lua
local value = animpostfxGetCurrentTime(effectName)

Parameters

ParameterTypeJavaScriptLua
effectNamestringstringstring

Returns

float JavaScript number, Lua number

Notes

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

Reference

Namespace
Graphics GRAPHICS
In the game
float ANIMPOSTFX_GET_CURRENT_TIME(const char* effectName)
Hash
0xE35B38A27E8E7179
Introduced
Game build 877 legacy numbering
Formerly
_ANIMPOSTFX_GET_UNK

Open in the interactive natives reference