Native referenceFiveM

CLEAR_WEATHER_TYPE_NOW_PERSIST_NETWORK

0x0CF97F497FE7D048 MISC
FUNCTION SIGNATURE
void CLEAR_WEATHER_TYPE_NOW_PERSIST_NETWORK(int transitionTimeInMs);
Property Value
Native Name CLEAR_WEATHER_TYPE_NOW_PERSIST_NETWORK
Hash 0x0CF97F497FE7D048
Return Type void
Parameters transitionTimeInMs (int)

Description: Clears the active weather type after a specific amount of time determined by transitionTimeInMs.

Parameters

  • transitionTimeInMs (int) — Transition time in milliseconds.

Examples

RegisterCommand('weathertransition', function(source, args)
    -- Set the weather type to foggy so we can see the change
    SetWeatherTypeNowPersist("FOGGY")
    -- Clear the weather and run the transition
    local transitionTimeInMs = tonumber(args[1]) or 5000
    if transitionTimeInMs > 0 then
        ClearWeatherTypeNowPersistNetwork(transitionTimeInMs)
    end
end, false)
Back to MISC