๐พX Weather & Time
Your Full Weather Control UI
๐ฆ๏ธ X Weather & Time System Documentation
Welcome to the documentation for X_UTILITY Weather & Time System, a comprehensive solution for managing weather and time on your FiveM server. This script allows admins to create immersive environments with customizable weather cycles and advanced time controls.
๐ Key Features
Dynamic Weather System ๐ง๏ธโ๏ธ: Create customizable weather cycles with smooth transitions that enhance immersion.
Advanced Time Controls โฐ: Freeze, speed adjust, sync with real-time, and enable blackout mode for ultimate environmental control.
Beautiful Admin Interface ๐จ: Intuitive UI with customizable animations, colors, and effects for weather and time management.
Framework Ready ๐ ๏ธ: Works seamlessly with ESX and QB-Core.
Customizable Design ๐จ: Adjust every aspect of the UI to match your server's unique style.
Smooth Transitions ๐: Weather and time changes happen gradually for a more natural experience.
Admin Permissions ๐ฎโโ๏ธ: Role-based access control for server staff.
Notification System ๐ข: Visual alerts with customizable icons and colors.
๐ฆ What's Included
Comprehensive Documentation ๐: Step-by-step guides for easy setup.
Pre-configured Templates ๐: Multiple UI themes and weather presets included.
Priority Support ๐ก๏ธ: Direct assistance from developers via Tebex for smooth implementation.
๐ ๏ธ Installation
Step 1: Download the Resource
Visit the FiveWorld Shop and download the X_UTILITY Weather & Time System resource.
Extract the downloaded file to your server's resources folder.
Step 2: Add to Server Configuration
Add the following line to your server.cfg file to ensure the resource starts automatically:ensure X_UTILITY_WeatherAndTime
Step 3: Customize the UI (Optional)
The UI appearance can be customized in configuration/config.js. Hereโs an example of how to customize the theme colors:JavaScriptCopy
๐ Configuration
Main Configuration
All weather and time settings are stored in configuration/config.json:
Weather Types: List of available weather types.
Default Weather: The weather type the server starts with.
Default Time: The time the server starts with (in
HH:MMformat).Time Speed Multiplier: Controls how fast time passes (1.0 = normal speed).
Blackout Enabled: Whether blackout mode is enabled by default.
Freeze Time: Whether time is frozen by default.
Real Time Sync: Whether the server time syncs with real-world time.
UI Configuration
The UI appearance can be customized in configuration/config.js:
Colors and Theme: Customize the primary, secondary, and accent colors.
Blur Effects: Adjust the blur strength for different UI elements.
Fonts and Text Styles: Change font families, sizes, and weights.
Animations and Effects: Enable or disable shine and glow effects.
Permissions
Configure admin access in configuration/config.lua:luaCopy
๐ Commands
/weatherui- Open the weather and time UI./weather [type]- Change current weather./time [hour] [minute]- Set specific time./blackout- Toggle blackout mode./dynamicweather- Toggle dynamic weather system./freezetime- Freeze/unfreeze time./realtime- Sync with real-world time.
โ ๏ธ Troubleshooting
Weather Not Changing: Ensure the
weathercommand is being used correctly and that the weather type is valid.Time Not Syncing: Check that the
realtimecommand is used and that the server time is not frozen.UI Not Displaying: Verify that the resource is properly installed and that there are no errors in the server console.
Last updated
