RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. APPLY_WEATHER_CYCLES

APPLY_WEATHER_CYCLES

CFX

Signature

lua
ApplyWeatherCycles(0, 0)
-- returns BOOL

Parameters

NameTypeDescription
intThe number of cycle entries. Must be between 1 and 256
intThe 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

On this page

  • Signature
  • Parameters
  • Usage
  • Details