ClearWeatherTypeNowPersistNetwork
DocsClearWeatherTypeNowPersistNetwork(transitionTimeInMs)Description
Clears the active weather type after a specific amount of time determined by transitionTimeInMs.
Parameters
| Name | Type | Description |
|---|---|---|
transitionTimeInMs | int | Transition time in milliseconds. |
Returns
voidThis native does not return a value.
Examples
Official
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)