oZoneWeatherSync

oZoneWeatherSync Documentation

Introduction

Welcome to the oZoneWeatherSync documentation. This script is designed to synchronize weather conditions in FiveM, providing differentiated weather between the south and north of Los Santos. It enhances immersion and realism on your server.

Features

  • 🚀 Standalone: Compatible with all servers.

  • Optimized: Smooth performance.

  • 🌍 Differentiated Weather: Different weather conditions between the south 🌞 and north 🌧️ of Los Santos.

  • 🤝 Synchronized Zones: Identical weather for all players in the same zone.

  • ⏱️ Synchronized Time: Uniform weather conditions for all players.

  • 👮 Staff Commands: Weather control for staff members.

  • 📍 Zone-Specific Changes: Modify weather conditions in specific areas.

  • 🌐 Available Languages: English (EN), Spanish (ES), Portuguese (PT), French (FR), German (DE), Italian (IT), Russian (RU).

Configuration

Open the config.lua file to configure the script according to your server needs. Below are the explanations for each configuration setting:

Config.Locale

Config.Locale = 'en'

Sets the language for the script. Available options are 'en', 'fr', 'es', 'pt', 'ru', 'it', 'de'.

Config.WeatherTypes

Config.WeatherTypes = { "CLEAR", "EXTRASUNNY", "CLOUDS", "OVERCAST", "RAIN", "CLEARING", "THUNDER", "SMOG", "FOGGY", "XMAS", "SNOW", "SNOWLIGHT", "BLIZZARD", "HALLOWEEN", "NEUTRAL" }

Defines the possible weather types that can be used by the script. The only valid options are:

  • CLEAR

  • EXTRASUNNY

  • CLOUDS

  • OVERCAST

  • RAIN

  • CLEARING

  • THUNDER

  • SMOG

  • FOGGY

  • XMAS

  • SNOW

  • SNOWLIGHT

  • BLIZZARD

  • HALLOWEEN

  • NEUTRAL

Config.ChangeInterval

Config.ChangeInterval = 600000

The interval at which the weather changes, specified in milliseconds. In this example, the weather changes every 10 minutes (600,000 milliseconds).

Config.TransitionDuration

Config.TransitionDuration = 15.0

The duration of the weather transition in seconds. This determines how long it takes for the weather to transition from one type to another.

Config.TimeSyncInterval

Config.TimeSyncInterval = 30000

The interval at which the server time is synchronized, specified in milliseconds. In this example, the time is synchronized every 30 seconds (30,000 milliseconds).

Config.AuthorizedLicenses

Config.AuthorizedLicenses = {
    "license:xxOneDevExemplexx"
}

Specifies the licenses authorized to use the weather control commands. Replace the example license key with the actual licenses of your authorized staff members.

Usage

Commands

  • /setWeather [south/north] [type]: Change the weather type for the south or north. For example, /setWeather south RAIN sets the weather to rain in the southern part of Los Santos.

  • /setTime [hours] [minutes]: Set the server time. For example, /setTime 14 30 sets the time to 14:30

Permissions

Ensure that only authorized staff members have access to the weather control commands

Advanced Features

🌤️ Weather Synchronization

Weather conditions are automatically synchronized across all players in the same zone, providing a consistent and immersive experience.

🌞 Zone-Specific Changes

Admins can change the weather conditions specifically for the south or north zones of Los Santos without affecting the entire map.

Languages

The script supports multiple languages:

  • 🏴󠁧󠁢󠁥󠁮󠁧󠁿 English (EN)

  • 🇪🇸 Spanish (ES)

  • 🇵🇹 Portuguese (PT)

  • 🇫🇷 French (FR)

  • 🇩🇪 German (DE)

  • 🇮🇹 Italian (IT)

  • 🇷🇺 Russian (RU)

Support

Contact Information

For support, please join Discord

Last updated