uyuyorumstore
um-multicharacter-xviHow-to Guides

HUD and Weather

How to hide your HUD and pause your weather script on the character screen

Path

hooks.lua
config > hooks.lua
-- Client hooks: plug in your own HUD and weather resources here.
return {
    ---@param hidden boolean
    hideHud = function(hidden)
        -- exports['your-hud']:hide(hidden)
    end,

    ---@param enabled boolean false while the selection screen forces its own weather
    weatherSync = function(enabled)
        TriggerEvent(enabled and 'qb-weathersync:client:EnableSync' or 'qb-weathersync:client:DisableSync')
    end,
}
  • hideHud: put your HUD script's hide export or event inside.
  • weatherSync: works with qb-weathersync and Renewed-Weathersync. For another weather script, put its stop / start events here.