[FREE RELEASE] B2 Weather Essentials - Dynamic Weather System for FiveM

[FREE RELEASE] B2 Weather Essentials - Dynamic Weather System for FiveM

Introduction

Greetings, FiveM community!

I’m excited to introduce B2 Weather Essentials, a comprehensive dynamic weather system designed to enhance your FiveM server’s realism and immersion. This resource brings synchronized weather changes, real-time local weather integration, and easy admin controls to your server.

Features

  • Dynamic Weather Options: Supports all FiveM weather types, including clear skies, thunderstorms, fog, and snow.
  • Configurable Weather Chances: Adjust the probability of each weather type occurring to keep the environment dynamic.
  • Interval-Based Weather Changes: Set how often the weather changes automatically.
  • Admin Commands: Simple commands for admins to manually change the weather.
  • Live Local Weather Integration: Syncs in-game weather with real-world weather using the Open-Meteo API.

Installation

  1. Download the resource from the link below and place it in your FiveM server’s resources folder.
  2. Add the resource to your server.cfg:
    ensure b2_weatherEssentials
    

Configuration

Edit the config.lua file to set up the weather types, chances, intervals, and API settings:

Config = {
    WeatherTypes = {"CLEAR", "EXTRASUNNY", "CLOUDS", "OVERCAST", "RAIN", "CLEARING", "THUNDER", "SMOG", "FOGGY", "XMAS", "SNOWLIGHT", "BLIZZARD"},
    WeatherChances = {CLEAR = 20, EXTRASUNNY = 15, CLOUDS = 10, OVERCAST = 10, RAIN = 10, CLEARING = 5, THUNDER = 5, SMOG = 5, FOGGY = 5, XMAS = 5, SNOWLIGHT = 5, BLIZZARD = 5},
    WeatherChangeInterval = 30,
    UseLiveWeather = true,
    Latitude = "your_latitude",
    Longitude = "your_longitude"
}

Commands

  • /setweather [weather]: Allows admins to manually set the weather. Example: /setweather CLEAR. Requires the command.setweather ACE permission.

API Exports

Easily integrate the weather system with other scripts:

  • SetWeather(weather): Sets the weather to the specified type.
  • GetCurrentWeather(): Returns the current weather type.

Example Usage

Setting Weather from Another Script:

Citizen.CreateThread(function()
    Wait(10000) -- Wait for 10 seconds
    exports['b2_weatherEssentials']:SetWeather('THUNDER')
end)

Getting Current Weather from Another Script:

Citizen.CreateThread(function()
    Wait(10000) -- Wait for 10 seconds
    local currentWeather = exports['b2_weatherEssentials']:GetCurrentWeather()
    print("Current Weather: " .. currentWeather)
end)

Download

Download B2 Weather Essentials

Join the Discussion

Have questions or feedback? Join the discussion below or on the Github Repo and connect with other server owners and developers.

Check Out My Other Resources


Thank you for your support and I hope you enjoy using B2 Weather Essentials on your FiveM server.

Happy gaming!
B2

9 Likes

W Work, Top class, GET IT I WILL FIND YOU!

greetings mate… does it support blackout too?

Hey!

As of right now it doesn’t, however I’m doing an update to it later today to improve it further and add more functionality, so I’ll add that in later :call_me_hand:t4:

With this script is it setup soo its rain in Paleto and then sunshine in Sandy? :D?

1 Like

It is not currently, however V1.1.0 will have support for this!

I’m currently working on V1.1.0 and it should be released in the next 12 hours or so!

1 Like

Awesome man! really rare to se someone making a free script like this, and reply with a new release soon :smiley:

@TheJokeerTV
@JohnAllington

:sun_behind_rain_cloud: b2_weatherEssentials v1.1.0 Update :sun_behind_rain_cloud:

We’re excited to announce a major update to our b2_weatherEssentials script! This update brings a host of new features to enhance your FiveM server’s weather system.

:new: New Features:
:earth_americas: Regional Weather System: Different areas can now have their own unique weather!
:tornado: Extreme Weather Events: Experience earthquakes, storms, extreme cold/heat, and tsunamis!
:candle: Enhanced Blackout System: More immersive and controllable power outages.
:ballot_box: Improved Weather Voting: Players can now influence the weather through voting.

:wrench: Improvements:
:alarm_clock: Better time synchronization across the server.
:red_car: Integration with b2_vehicleEssentials for weather-based driving styles.
:thermometer: Optional live weather integration using real-world data.

:hammer_and_wrench: For Server Owners:

  • New configuration options in config.lua
  • Added exports for easy integration with other resources
  • New admin commands for ultimate weather control

:inbox_tray: How to Update:

  1. Download the latest version from the Github Repo
  2. Replace your existing b2_weatherEssentials folder
  3. Review and update your config.lua file
  4. Restart your server

:books: Documentation:
Check out our updated README file for full details on new features, configuration options, and usage instructions.

:bug: Bug Reports & Feedback:
Please use the GitHub Issues section of the repo if you encounter any issues.

Thank you for your continued support! We hope you enjoy the new weather experiences in your FiveM server.

Happy gaming! :sunny::cloud_with_rain::snowflake::cloud_with_lightning_and_rain:

B2

2 Likes

THIS. is what the public has been needing. All the paid versions suck as-well as they don’t sync well. Great job!!

– Dan

2 Likes

Hey! @iamdanielpeter

I greatly appreciate the kind words!

I live by the motto that anything you create that is paid, should have a free version out there too. There’s too much lacklustre development in the FiveM community these days.

I’m working on literally everything that a server could possibly need at the moment, so keep an eye out for my releases!

1 Like

[Release] b2_weatherEssentials v1.2.0 - Advanced Weather System for FiveM

Hello FiveM Community!

We’re thrilled to announce the latest update for b2_weatherEssentials. Version 1.2.0 brings exciting new features and improvements to enhance your server’s weather and time synchronization experience.

What’s New in v1.2.0?

:hourglass_flowing_sand: Time Scale Customization

You can now customize the duration of an in-game day. Adjust the timescale to determine how long a 24-hour in-game period lasts in real-world minutes.

:clock3: Real-Time Server Clock Synchronization

Sync your in-game time with the real-world time of your server’s location for a more immersive and realistic experience.

Feature Highlights:

  • Dynamic weather changes

  • Regional weather system

  • Extreme weather events (earthquakes, storms, extreme cold/heat, tsunamis)

  • Blackout system

  • Weather voting system

  • Live weather integration (optional)

  • Time & Weather synchronization

  • Admin commands for weather and time control

  • Integration with b2_vehicleEssentials for weather-based driving styles

  • Customizable configuration

Installation and Configuration:

  1. Download the b2_weatherEssentials script.

  2. Place the script in your FiveM server’s resources folder.

  3. Add ensure b2_weatherEssentials to your server.cfg file.

  4. Customize the script by editing the config.lua file.

Download and Support:

Changelog:

  • 1.2.0: Added time scale customization and real-time server clock synchronization.

  • 1.1.0: Added regional weather system, extreme weather events & voting system.

  • 1.0.0: Initial release with basic weather

Thank you for your support! We look forward to hearing your feedback and seeing the amazing experiences you create with b2_weatherEssentials.

Happy gaming!

1 Like

Is it normal to see the weather constantly flashing?

Hey! This is a result of you having multiple weathersyncs in / something clashing.

Do this: Look in VSC for “qb-weathersync” or “vsync” and comment them out from those fxmanifests.
This should fix your problem, as you can only have one weathersync in.

Cheers!

– Dan

That seemed to work, thanks!

mind teaching how you solve it ? i’m facing the same problem as you are. Because some dependency are required qb-weathersync

I haven’t run into any issues with simply removing it.

absolutely loving the B2_WeatherEssentials script we use it primarily for the real time sync and the real weather sync and its works flawlessly! adds a great immersive feel of patrolling the streets of San Andreas at all times of the day and also helps with some of our scripts that rely on time based occurrences for drugs and gang activity! Great job with the script!

Hi guys i was using a Serversync but is consuming like hell 0.10ms can i ask how much is consuming this one?


Here is what our server sees for its resource usage

1 Like

Should be 0.00ms with the occasional peak of 0.01-0.03 depending on the system you run it on.

1 Like