> For the complete documentation index, see [llms.txt](https://sbscripts.gitbook.io/sb-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sbscripts.gitbook.io/sb-scripts/sb-weather/qb-weathersync-compatibility.md).

# qb-weathersync Compatibility

`fxmanifest.lua` has `provide 'qb-weathersync'`. Resources with `dependency 'qb-weathersync'` start normally, and their `exports['qb-weathersync']` calls are answered by SB Weather:

`nextWeatherStage`, `setWeather`, `setTime`, `setBlackout`, `setTimeFreeze`, `setDynamicWeather`, `getBlackoutState`, `getTimeFreezeState`, `getWeatherState`, `getDynamicWeather`, `getTime`

These events are handled too. The server ones check access:

* `qb-weathersync:server:setWeather`
* `qb-weathersync:server:setTime`
* `qb-weathersync:server:toggleBlackout`
* `qb-weathersync:server:toggleFreezeTime`
* `qb-weathersync:server:toggleDynamicWeather`
* `qb-weathersync:server:RequestStateSync`
* `qb-weathersync:client:DisableSync` and `EnableSync` (client)

`setWeather` changes every region (`Config.Compat.SetWeatherAllRegions`).

Housing scripts that use `qb-weathersync:client:DisableSync` and `EnableSync`, `cd_easytime:PauseSync` or `vSync:toggle` are also handled.
