Touched up incorrect or missing Intellisense parameter annotations across several functions. Added some missing descriptions to improve editor support. Still more to do, but this is a small step forward for overall developer workflow. Also small fix in picklexp
16 lines
434 B
Lua
16 lines
434 B
Lua
---@diagnostic disable: duplicate-set-field
|
|
if GetResourceState('qb-weathersync') == 'missing' then return end
|
|
Weather = Weather or {}
|
|
|
|
---This will toggle the players weather/time sync
|
|
---@param toggle boolean
|
|
---@return nil
|
|
Weather.ToggleSync = function(toggle)
|
|
if toggle then
|
|
TriggerEvent("qb-weathersync:client:EnableSync")
|
|
else
|
|
TriggerEvent("qb-weathersync:client:DisableSync")
|
|
end
|
|
end
|
|
|
|
return Weather |