HZ-Weather
Overview
HZ-Weather is a premium, all-in-one weather engine for FiveM. It replaces every weather resource on your server with a single, optimized script. Dynamic weather, climate zones, seasons, temperature, natural disasters, and a full admin panel — everything in one resource.Key Features
- Weather Zones — Unlimited custom zones with independent weather and smooth transitions
- Season System — 4 season presets with automatic cycling or real-time calendar sync
- Temperature — Per-zone dynamic temperature with day/night curves and gameplay effects
- Natural Disasters — Physicalized tornado and rising-water tsunami
- Admin Panel — Weather module of the
/hzpaneladmin panel with 7 tabs - Gameplay Effects — Vehicle traction, fog, cold and heat effects, sprint speed, blackout
- Wind System — Dynamic speed and direction with random gusts
- Forecast System — Real-time weather predictions with exports and callbacks for any resource
- Phone Weather Apps — Dedicated apps for LB Phone and QS Smartphone Pro
- 50+ Exports — Complete API for integration with any script
- Multi-framework — Standalone, QBCore, QBX, ESX (auto-detected)
- Compatibility — Drop-in replacement for
qb-weathersyncandcd_easytime
Performance
| Metric | Value |
|---|---|
| Client (idle) | 0.00 ms |
| Client (events) | 0.08 ms |
| Server | 0.00 ms |
Requirements
- FiveM Server (latest recommended)
- hz\_lib (free, shared by all HZ scripts)
- ox\_lib v3.0+
- oxmysql v2.0+
- PolyZone
- Optional: xsound for the tsunami sirens
Features In-Depth
Weather Engine
All GTA V weather types with realistic multi-step transitions, a sky that blends across zone borders, weather freeze, admin override locked across restarts, and database persistence.
Supported types:EXTRASUNNY, CLEAR, CLOUDS, OVERCAST, RAIN, THUNDER, CLEARING, FOGGY, SMOG, SNOW, SNOWLIGHT, BLIZZARD, XMAS, NEUTRAL, HALLOWEEN
Weather Zones
Create unlimited zones (circle or polygon) with independent weather per area. Players experience smooth distance-based transitions — no pop-in. A zone influence system ensures neighboring zones blend naturally.
Built-in zones: Los Santos, Vinewood, Vinewood Hills, Banham Canyon, Palomino Highlands, Tataviam Mountains, Sandy Shores, Mount Josiah, Paleto Bay, Cayo Perico.
Season System
4 full season presets (Spring, Summer, Autumn, Winter), each with its own weather sequence and temperature curve. Three cycle modes:
- Disabled — Manual control only
- Auto — Rotates seasons automatically on a configurable timer
- Realtime — Maps real calendar months to seasons (January = Winter, etc.)
Temperature System
Per-zone temperatures calculated from zone settings, weather type, and time of day. Three modes: zone, weather, or hybrid. Includes day/night curve interpolation, random variation, and Celsius/Fahrenheit display.
Gameplay effects: freezing animations and screen frost below the cold threshold, heatstroke distortion above the heat threshold.
Natural Disasters
Tornado
Fully physicalized with a 3-force vortex model (pull, lift, spin). Multi-layer particle system with debris. Throws vehicles, NPCs, and the player. Moves across the map with ground-following AI. Server-synced for all players.
Tsunami
Rising water system using GTA native LoadWaterFromPath. Configurable warning time, max height, rise/recede speed, peak duration and aftermath (quick reset, or the water stays for survival RP). 3D coastal sirens (with xsound), civil-defense voice alerts in English and French, NPCs that flee inland. The current sky is kept by default; forced weather, camera shake, screen overlay and dark timecycle are optional.
Gameplay Effects
| Effect | Description |
|---|---|
| Vehicle traction | Reduced grip in rain (70%), snow (50%), blizzard (30%) |
| Reduced visibility | Fog in FOGGY, SMOG, RAIN, THUNDER, SNOW, BLIZZARD |
| Player effects | Cold shivering, heat distortion, screen FX |
| Speed reduction | Slower sprint in blizzard |
| Blackout | Global power outage, with zones that keep their lights |
Admin Panel (React NUI)
The Weather module of the hz_lib admin panel, opened with /weather or /hzpanel. Seven tabs:
- Map: Set weather per zone or globally on a live map, unlock zones, freeze, blackout, per-zone temperature ranges, teleport
- Time: Set time, freeze toggle, real-time sync, day/night length and time speed
- Seasons: Change or skip the season, pick the cycle mode, countdown display
- Forecast: View, edit, insert, and remove upcoming weather entries with live countdown
- Events: Start, pause and stop tornado and tsunami, tune their timing and atmosphere
- Zones: Draw polygon or circle zones, reshape them, set weather, temperature and priority
- Config: General, weather, temperature, seasons, wind, blackout, HUD and integration settings
Phone Weather Apps
Dedicated weather apps available for LB Phone and QS Smartphone Pro:
- Interactive satellite map with zone markers and live weather overlay
- Dynamic animated backgrounds based on current weather
- Hourly forecast per zone with scrollable timeline
- Animated sun tracker with sunrise/sunset curve
- Wind speed & direction, season info cards
- Auto-synced game time from the server
Embeddable Weather Map
A standalone satellite map page (map.html) designed for iframe embedding in any FiveM phone resource (lb-phone, qs-phone, HZ-Phone, etc.). Displays zone weather, temperature, wind, and season info with auto-refresh.
<iframe src="https://cfx-nui-hz_weather/web/dist/map.html"
style="width:100%;height:100%;border:none" />
