GraphicsClient

setTimecycleModifier

SET_TIMECYCLE_MODIFIER0x2C933ABF17A1DF41

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

SignatureJavaScript
setTimecycleModifier(modifierName: string): void
SignatureLua
setTimecycleModifier(modifierName: string)

Usage

JavaScript
setTimecycleModifier(modifierName);
Lua
setTimecycleModifier(modifierName)

Parameters

ParameterTypeJavaScriptLua
modifierNamestringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Loads the specified timecycle modifier. Modifiers are defined separately in another file (e.g. "timecycle_mods_1.xml")

Parameters:
modifierName - The modifier to load (e.g. "V_FIB_IT3", "scanline_cam", etc.)

Full list of timecycle modifiers by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/timecycleModifiers.json

Reference

Namespace
Graphics GRAPHICS
In the game
void SET_TIMECYCLE_MODIFIER(const char* modifierName)
Hash
0x2C933ABF17A1DF41

Open in the interactive natives reference