APPLY_WEATHER_CYCLES
CFX
Signature
lua
ApplyWeatherCycles(0, 0)
-- returns BOOLParameters
| Name | Type | Description |
|---|---|---|
| int | The number of cycle entries. Must be between 1 and 256 | |
| int | The duration in milliseconds of each cycle. Must be between 1000 and 86400000 (24 hours) |
Usage
Named call
ApplyWeatherCycles(0, 0)InvokeNative
Citizen.InvokeNative(0x3422291C, 0, 0)lua 1
-- 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)Details
- Hash
- API set
- Source
- cfx
Source: cfx
