Weather & Time Controller is an open-source FiveM client script that allows players to dynamically change the in-game time and weather through an intuitive menu system. This script provides real-time environment control with seamless integration into ESX, making it perfect for roleplay servers and custom gameplay scenarios.
- Change time of day with presets: Morning, Afternoon, Evening
- Change weather conditions on the fly with multiple weather types
- Freezes time at chosen hour/minute for consistent gameplay atmosphere
- Smooth weather transitions and persistent weather effects
- Easy-to-use ESX menu integration with clear notifications
- Commands to open the menu (
changetime
andchangeweather
) - Minimal performance impact with efficient threads
- Planned future enhancements and customization options
The script hooks into ESX menus to provide a user interface for selecting time and weather presets. It uses native FiveM functions to override the server clock and weather, applying changes immediately and persisting them until changed again.
currentHour = 12
currentMinute = 0
freezeTime = true
NetworkOverrideClockTime(currentHour, currentMinute, 0)
PauseClock(true)
Tip
Use the commands /changetime
or /changeweather
in-game to open the environment control menu quickly.
- Download or copy the
client.lua
andconfig.lua
files. - Place them inside a resource folder, e.g.
/resources/[local]/weather-time-controller/
. - Add the following to the resource’s
fxmanifest.lua
file:
fx_version 'cerulean'
game 'gta5'
version '1.0.0'
client_script 'client.lua'
shared_script 'config.lua'
- Configure the command names or menu labels inside
config.lua
as needed. - Enable the resource by adding this line to your
server.cfg
:
ensure weather-time-controller
Warning
This script requires the ESX framework (es_extended
) to be installed and running on your server.
If you have any questions, suggestions, or discover any issues, please reach out to me via my Discord Profile. I am committed to responding promptly and ensuring smooth operation of this resource.
Please report security vulnerabilities privately to avoid exposure before a fix is issued.
Contributions are highly welcome! To help improve this script:
- Submit Pull Requests (PRs) for new features or bug fixes.
- For minor typos or documentation fixes, consider opening an issue instead.
- Keep pull requests focused and avoid large-scale rewrites in a single submission.
- Refrain from submitting spam or irrelevant content.
This project is licensed under the MIT License, granting permission to use, modify, distribute, and sublicense freely, provided the original copyright and license notice remain intact.
The software is provided "as-is" without any warranty.
For full license details, see the MIT License.
🍹 Created by KaloudasDev.
If you find this project useful, please consider giving it a ⭐. Thanks for your support!