gun-squirtDXS Weather

Installation

  • Add the resource:

  • In server.cfg : ensure DXS_weather

  • Set admin access (SteamID whitelist):

  • Add Steam HEX IDs in Config.AdminSteamIDs ( config.lua:9-12 )

  • Optional ACE permissions:

  • Supported if you add Config.UseAce = true in config.lua

  • Keep Config.Permission = 'dxs.weather' ( config.lua:4 )

  • Example server.cfg :

    • add_ace group.admin dxs.weather allow

    • add_principal identifier.steam:11000010ABCDEF group.admin

Configure defaults

  • Config.DefaultWeather , Config.DefaultHour , Config.DefaultMinute ( config.lua:6-8 )

  • Edit Config.AllowedWeathers to match your server’s needs ( config.lua:13-21 )

  • Restart your RedM server to load the resource

Usage

  • Type /weather in chat to open the UI ( server/main.lua:26-39 )

  • Choose weather, set hour via slider, pick AM/PM, then press Save

  • Press Reset to stop enforcement and return to normal dynamic weather

  • Allowed options in the UI are populated from Config.AllowedWeathers ( html/script.js:43-52 , server/main.lua:32-38 )

Last updated