animpostfxGetCurrentTime
ANIMPOSTFX_GET_CURRENT_TIME0xE35B38A27E8E7179The 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.
animpostfxGetCurrentTime(effectName: string): numberanimpostfxGetCurrentTime(effectName: string): numberUsage
JavaScript
const value = animpostfxGetCurrentTime(effectName);Lua
local value = animpostfxGetCurrentTime(effectName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
effectName | string | string | string |
Returns
float JavaScript number, Lua numberNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
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
float ANIMPOSTFX_GET_CURRENT_TIME(const char* effectName)- Hash
0xE35B38A27E8E7179- Introduced
- Game build 877 legacy numbering
- Formerly
_ANIMPOSTFX_GET_UNK