L4-LiveWeatherandUI - Live Weather and Time via API, Clean UI for the Time and Weather

Introducing L4-LiveWeatherandUI

Features:

  • Live Weather System: With the power of a weather API, select any city, and watch as the in-game weather updates in real-time.
  • Real-Time Synchronization: The server time matches real-life time. If it’s noon in real life, it’s noon in the game, and the dynamic weather ensures the day progresses naturally.
  • Realistic NPC Spawns: Less NPC activity at night compared to daytime. As night falls, NPC activity decreases, making the city feel alive and dynamic.
  • Clean and Customizable UI: Display current time, date, and weather in the game. Customize what you want to see and move the UI around with the /moveui command for the best gaming experience.
  • Fully Customizable: Tailor the script to fit your needs. Nearly everything can be adjusted to suit your preferences.

Showcase UI: Watch on YouTube

The full script will be showcased soon in a extra video

Script Configuration Overview: The script currently supports the following languages: [DE, EN, FR, ESP, DU, POL]

Config = {}

-- Change API and city here. Refer to the README for assistance
Config.ApiKey = "YOUR-API-KEY" -- Your API key from openweathermap.org
Config.City = "Berlin" -- Search your city on openweathermap.org and copy the name here

-- Change UpdateInterval if necessary. Refer to the README for assistance
-- Settings are in beta; do not change unless you are knowledgeable
Config.UpdateInterval = 240000 -- 4 minutes in milliseconds (Beta)

-- Realistic NPC Spawning Density
Config.RealisticDensity = true -- true/false

-- UI Configuration
Config.ShowTime = true -- Show the time in the WeatherUI
Config.ShowWeather = true -- Show the weather in the WeatherUI
Config.ShowDate = true -- Show the date in the WeatherUI
Config.ShowUI = true -- Show the WeatherUI in the game
Config.UIPosition = 'top-left' -- UI Position: 'top-left', 'top-right', 'center', 'bottom-left', 'bottom-center', 'bottom-right'
Config.DraggableUI = true -- Enable/Disable draggable UI with the command '/moveui'

-- Debug Mode
Config.Debug = false 

This is my first script, and I hope you like it. For questions or bug reports, please contact me.

This script has only been tested with ESX and may not be compatible with other frameworks.

Download the Script on Github

Code is accessible Yes
Lines (approximately) 500+
8 Likes

thank you bro can you add option to change the size thanks

Hey, what size do you mean?

Here is the Full Preview + Install Tutorial

virus ? why ,?

What do you mean by virus ?

my pc detects a virus not possible to download

I’m not sure what the issue might be. I also use Windows 11 and haven’t encountered any messages like that. Are you certain you downloaded it from my official GitHub page? I can assure you that there are no viruses in it

yes even with another internet browser ca does not download it

Then you must deactivate your virus program. I checked Virus-Total and uploaded my script and 0/0 viruses were found. So it’s up to you :slight_smile:

Im also unable to download this and I tried two browsers, it keeps being marked as a virus.,

Change the ui.html, it will be taken as a virus
Write it like this and you can download it

<!DOCTYPE html>
<html>
<meta charset="UTF-8">

It’s really weird. I checked other htmls from other scripts and it’s exactly the same as mine

I have updated the HTML, I hope it works now

Now you can download it, I tested it

I had put all the files on my PC by hand and then I noticed that Win 11 had immediately deleted the UI, which is why I realized that that was the problem

Thank you :smiley: then it was the HTML. Should be fixed now

thank you I’m not crazy

L4-RealWeahtherandUI Update 2.1

  • UI has been slightly revised

    City now displayed in the UI

    New font in the UI

    Bug Fixed

  • New Config Options

    Config.AllowedPlayers

    Config.ShowCity

  • New Weather Admin UI (Beta)

    Complete blackout now possible in AdminUI

    Standalone permission system built in for the AdminUI

Bugs have been fixed and sync errors

The readme file has been updated and a new file to help with the conversion of the UI is now included

L4-RealWeahtherandUI Update 2.1 Little Preview

Download the latest version

1 Like

I have the “vMenu” you know how to prevent it trying to change the weather because I have time bugs ? thx