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)