GraphicsClient

getTimecycleModifierIndex

GET_TIMECYCLE_MODIFIER_INDEX0xFDF3D97C674AFB66

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

SignatureJavaScript
getTimecycleModifierIndex(): number
SignatureLua
getTimecycleModifierIndex(): integer

Usage

JavaScript
const result = getTimecycleModifierIndex();
Lua
local result = getTimecycleModifierIndex()

Parameters

None.

Returns

int JavaScript number, Lua integer

Notes

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

Only use for this in the PC scripts is:

if (getTimecycleModifierIndex() != -1)

Reference

Namespace
Graphics GRAPHICS
In the game
int GET_TIMECYCLE_MODIFIER_INDEX()
Hash
0xFDF3D97C674AFB66

Open in the interactive natives reference