Native referenceFiveMclient

APPLY_WEATHER_CYCLES

0x3422291C CFX
FUNCTION SIGNATURE
BOOL APPLY_WEATHER_CYCLES(int numEntries, int msPerCycle);
Property Value
Native Name APPLY_WEATHER_CYCLES
Hash 0x3422291C
Return Type BOOL
API Set client
Parameters numEntries (int), msPerCycle (int)

Parameters

  • numEntries (int) — The number of cycle entries. Must be between 1 and 256
  • msPerCycle (int) — The duration in milliseconds of each cycle. Must be between 1000 and 86400000 (24 hours)

Examples

-- Cycle between XMAS weather for 30 seconds (3 * 10000 milliseconds), and SMOG weather for 20 seconds (2 * 10000 milliseconds)
local success = SetWeatherCycleEntry(0, "XMAS", 3) and
                SetWeatherCycleEntry(1, "SMOG", 2) and
                ApplyWeatherCycles(2, 10000)
Back to CFX