fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Client / World / transitionToWeather

Function: transitionToWeather()

transitionToWeather(weather, duration): void

Transitions the current weather to the specified weather type over a given duration.

Parameters

weather: WeatherEnum

The target weather type to transition to.

duration: number

The amount of time, in seconds, over which the weather transition should occur.

Returns

void

Defined in

client/World.ts:224