Files
community_bridge/modules/weather/renewed-weathersync/client/client.lua
T
MrNewb 90c65dc55e Add GetResourceName function to all modules
Introduces a standardized GetResourceName function to banking, clothing, dispatch, doorlock, framework, fuel, helptext, housing, and other modules. This function returns the name of the in-use resource, improving resource identification and interoperability across the codebase.
2025-09-10 12:27:12 -04:00

16 lines
406 B
Lua

---@diagnostic disable: duplicate-set-field
if GetResourceState('Renewed-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)
LocalPlayer.state.syncWeather = toggle
end
Weather.GetResourceName = function()
return "renewed-weathersync"
end
return Weather