[FREE] Nevera Realtime Weather and Clock Script

Nevera FiveM Realtime Weather and Clock is a script for FiveM servers that synchronizes real-time weather and clock in-game using data from the real world through an API.

GitHub Repository: Nevera FiveM Realtime Weather and Clock

Requirements

  • Framework: The script is compatible with ESX, QBCore, and Standalone.
  • FiveM Server: The latest version of the FiveM server.

Features

  • Real-time synchronization: Fetches real-time data from the API for Country/City.
  • Automatic weather updates: Weather conditions are updated every 10 minutes.
  • Notification display: Weather and time notifications are shown for 15 seconds.
  • Fog disable option: set disable_fog "true" to disable fog (useful for areas like Dalmatia, where fog is rare).

View Images

  1. Data synchronization:
    Prva slika

  2. Data update:
    AĹľuriranje podataka

  3. Resmon value in game:
    Resmon

  4. Clock display in the upper left corner every 10 minutes, with a duration of 15 seconds:
    Prikaz sata

  5. Rain:
    Rain

  6. Sun:
    Sun

Installation

  1. Download the script and place it in the resources folder of your FiveM server.
  2. Configure your server.cfg file:server.cfg to run the script:
set my_sync_key "YOUR_API_KEY"            # Your API key
set my_sync_timezone "Europe/Zagreb"      # Your country/city
set my_sync_city "Split"                  # Your city
set disable_fog "true"                    # Set to "false" if you want to enable fog

How to Get Your API Key

  • Visit the OpenWeatherMap website.
  • Sign up for a free account : Click on “Sign Up” and fill in your details to create an account.
  • Once registered, go to the API keys section in your profile.
  • Generate a new API key and use it in the server.cfg file.

Usage

The script automatically fetches real-time weather and clock data and sets it in-game. Weather condition notifications are shown every 10 minutes.

Contributions

If you would like to contribute to the project, feel free to open an issue or submit a pull request.

License

Released under the MIT license.

Latest Version - Improvements and Fixes

GitHub Repository:

  • Visit the releases/tag/v1.0.0 Latest Version

  • Added support for snow conditions

  • Fixed rain that didn’t stop

  • Improved performance and optimizations

7 Likes

I see that in the cfg you put country and city but in your example it is the continent and the country.

How would I put it if I want the climate of the country of Puerto Rico, and its capital?

set my_sync_timezone “Europe/Zagreb” # Time zone
set my_sync_city “Split” # City
set my_sync_key “Your_API_Key” # Replace with your API key
set disable_fog “true” #Set to “false” if you want to enable fog

1 Like

OdliÄŤna skripta! Da li se moze da se produzi trajanje prikaza vremena? Nasao sam u clinetu na line 120 ali nisam 100% siguran da je to to.

If you want to extend the duration, just change the number of milliseconds in Citizen.SetTimeout. For example, for a 30-second display (30000 milliseconds):

Here’s what the code would look like:

“Citizen.SetTimeout(30000, function()
prikaziVrijeme = false
end)”

Explanation:
The value 60000 represents 60000 milliseconds, which is equivalent to 60 seconds (1 minute). This way the time will remain displayed for 1 minute before being hidden.