{"hash":"0x3422291C","ns":"CFX","name":"APPLY_WEATHER_CYCLES","slug":"APPLY_WEATHER_CYCLES","official":true,"named":true,"luaName":"ApplyWeatherCycles","game":"cfx","apiset":"client","returnType":"BOOL","params":[{"name":"numEntries","type":"int","description":"The number of cycle entries. Must be between 1 and 256"},{"name":"msPerCycle","type":"int","description":"The duration in milliseconds of each cycle. Must be between 1000 and 86400000 (24 hours)"}],"returnsDescription":"Returns true if all parameters were valid, otherwise false.","summary":"","descriptions":[],"examples":[{"lang":"lua","code":"-- Cycle between XMAS weather for 30 seconds (3 * 10000 milliseconds), and SMOG weather for 20 seconds (2 * 10000 milliseconds)\nlocal success = SetWeatherCycleEntry(0, \"XMAS\", 3) and\n                SetWeatherCycleEntry(1, \"SMOG\", 2) and\n                ApplyWeatherCycles(2, 10000)","source":"cfx"}],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":3,"url":"https://natives.borderlinerp.com/natives/CFX/APPLY_WEATHER_CYCLES","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/APPLY_WEATHER_CYCLES.md","snippets":{"lua":"local retval = ApplyWeatherCycles(numEntries, msPerCycle)","luaInvoke":"local retval = Citizen.InvokeNative(0x3422291c, numEntries, msPerCycle, Citizen.ReturnResultAnyway())","js":"const retval = ApplyWeatherCycles(numEntries, msPerCycle);","jsInvoke":"const retval = Citizen.invokeNative('0x3422291c', numEntries, msPerCycle, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x3422291c, numEntries, msPerCycle);","notes":[]}}