setTimecycleModifier
SET_TIMECYCLE_MODIFIER0x2C933ABF17A1DF41The 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.
setTimecycleModifier(modifierName: string): voidsetTimecycleModifier(modifierName: string)Usage
JavaScript
setTimecycleModifier(modifierName);Lua
setTimecycleModifier(modifierName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
modifierName | string | string | string |
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