NEXO DOCSv1 · ENES
docs / scripts / nexo-weather

Nexo Weather

Free weather and time by zones, with zones drawn on the map, scheduled weather and a clean admin panel.

v1.0.0ESXQBCoreQBoxStandalone

What's included

Weather and time by zones with a clean admin panel, free. Works with ESX, QBCore, Qbox or no framework and needs no database.

  • Weather by zones: Los Santos, Sandy Shores, Paleto Bay, Mount Chiliad and Cayo Perico come set up. The rest of the map uses the global weather.
  • Your own zones from the panel: a circle at your position or a free shape drawn point by point on the map (up to 40 points). You can edit the shape of any zone, built-in ones included.
  • Scheduled weather: for example “storm on Saturdays at 22:00 for 45 minutes in Los Santos”, by real time or game time. When it ends, the zone goes back to how it was.
  • Dynamic, natural weather: each zone follows a cycle (city, desert, coast, mountain, tropical or winter) and moves realistically from one state to the next. It never jumps from sun to storm at once.
  • Smooth transitions, also when crossing from one zone to another.
  • Player widget with /weather: zone, weather, temperature, time and the next change forecast.
  • Time and weather identical for every player, synced from the server. Everything is saved in data/state.json and survives restarts.
  • qb-weathersync compatible: housing and interior scripts that freeze the weather keep working.
  • Discord logs, exports, dark or light theme, accent colour and 8 languages (Spanish, English, Portuguese, French, German, Italian, Polish and Turkish).

Admin panel

Open it with /weatheradmin. It has 7 tabs:

TabWhat it does
MapReal GTA V map with zoom and drag, dark or colour (Config.UI.MapStyle). Each zone is coloured by its weather with its temperature, and the inspector changes the weather, transition and mode (automatic or locked)
ZonesCreate, enable or disable, teleport, delete and see them drawn in the world
TimeChange the time, freeze it, speed from 0.5× to 4× and real time with a time zone
CyclesProbability of each weather and how often it changes
ScheduleCreate, edit, enable or disable and delete scheduled weather, with its status (active and time left, or when it runs next)
EffectsBlackout (with or without vehicle lights), wind, rain intensity and snow tracks
HistoryEvery change with who made it and when, with search and filters. Keeps the last 300

Editing a zone's shape: drag the points, add points with “+” and remove them with a double click. For circles, move the centre and change the radius from the edge.

Installation

  1. Copy the resource Get it for free from the store, download it from keymaster.fivem.net → Granted Assets and put nexo_weather in resources.
  2. Remove your weather script Remove any other weather script (qb-weathersync, vSync, cd_easytime…). Nexo Weather replaces them.
  3. Add it to your server.cfg
    ensure nexo_weather
  4. Give staff permission ESX/QBCore/Qbox groups (admin, superadmin, god) and the identifier list in config_server.lua also work.
    add_ace group.admin nexoweather.admin allow
No databaseEverything is saved in data/state.json inside the resource. Nothing to import.

Commands

CommandWhoWhat it does
/weatherEveryoneShows the weather where you are
/weatheradminStaffOpens the panel
/setweather RAIN [zona]StaffSets the weather (locked) for the whole map or one zone
/settime 21 30StaffChanges the time
/blackoutStaffTurns the blackout on or off

Command names are changed in Config.Commands.

Configuration

`config.lua` (shared):

OptionWhat it does
Config.Locale · Config.UnitsLanguage (8 available) and temperature in °C or °F
Config.UIdark or light theme, accent colour and map style (dark or color)
Config.CayoPericoShow Cayo Perico on the map and enable its zone
Config.Commands · Config.WidgetCommand names, and widget duration and forecast
Config.WeathersWeather types in the panel (remove the ones you don't want)
Config.DefaultTransition · Config.BorderTransitionTransition seconds when the weather changes and when crossing zones
Config.Global · Config.ProfilesWeather for the rest of the map and cycles (how often it changes and each weather's probability)
Config.Zones · Config.MaxCustomZonesBuilt-in zones (circle or polygon, priority, colour, cycle and temperature offset) and custom zone limit
Config.TimeStart time, minute length, speed, frozen, real time and time zone
Config.Compatqb-weathersync compatibility and interior weather and time

`config_server.lua` (server only): staff permissions (Ace, Groups, Identifiers), Discord webhook and the panel's request rate limit.

{ id = 'sandy', name = 'Sandy Shores', priority = 10, color = '#f59e0b', profile = 'desert', tempOffset = 6,
  shape = { type = 'circle', x = 1750.0, y = 3650.0, r = 1250.0 } },

Exports and compatibility

exports.nexo_weather:SetWeather('global', 'RAIN', 30, true)  -- zone, weather, transition, locked
exports.nexo_weather:GetWeather('sandy')
exports.nexo_weather:GetZoneAt(vector3(x, y, z))               -- zone id or 'global'
exports.nexo_weather:SetTime(21, 30)
exports.nexo_weather:GetTime()                                 -- hour, minute
exports.nexo_weather:FreezeTime(true)
exports.nexo_weather:SetBlackout(true)

The qb-weathersync:client:DisableSync and qb-weathersync:client:EnableSync events also work, and the resource provides qb-weathersync for scripts that require it as a dependency. While sync is off, the weather and time from Config.Compat (InteriorWeather, InteriorHour) are used.

Performance and map

The client checks your zone once per second. Something is only drawn every frame while an admin has “Show in the world” on.

The map image (web/map/atlas.jpg) is the GTA V atlas used by many FiveM projects, from fivem-leaflet-snippet. The GTA V map is owned by Rockstar Games. If you'd rather use another image, replace it with one with the same framing.

Editable files

FileWhat for
config.luaLanguage, units, theme, commands, weathers, transitions, cycles, built-in zones, time and compatibility.
config_server.luaStaff permissions and Discord webhook.
locales/Texts in 8 languages.
web/Panel and widget interface, and the map image (web/map/atlas.jpg).

FAQ

Can I use it alongside qb-weathersync or vSync?

No: Nexo Weather replaces them. Remove your previous weather script. Housing and interior scripts that use the qb-weathersync events keep working with no changes.

Does it need a database?

No. Everything is saved in data/state.json inside the resource and survives restarts.

Is the code encrypted?

The core is protected with Cfx.re escrow. Config, translations and integration points stay open.

Do I get updates?

Yes, for free. New versions appear in your Keymaster and we announce them on Discord.

What if something doesn't work?

Open a ticket on our Discord with the console error and we'll help you.