💻
alt:V Athena Docs v3.0.0
  • Info
    • Introduction
    • Patreon & Support
    • Athena Discord
    • FAQ
  • Installation
    • Common Issues
    • Windows
    • Linux (Ubuntu 20.04+)
    • Debugging
    • Updating
  • Info
    • Admin
    • Configuration
    • Console
    • Database
    • Hotkeys
    • Identifier
  • Plugins
    • Load Plugins
    • Create Plugins
    • Mods
    • Clothing
  • Controllers
    • What is a Controller?
    • Blip Controller
    • Interaction Controller
    • Marker Controller
    • Object Controller
    • Ped Controller
    • Text Label Controller
    • World Notification Controller
  • Systems
    • Interiors
    • Inventory & Items
    • Inventory Rules
    • Jobs
    • Time
    • Weather
  • Menus
    • Menu Types
    • Action Menus
    • Input Menu
    • Wheel Menu
  • Player
    • Admin-Commands
    • Animations
    • Attach Objects
    • Credits
    • Currency
    • Commands
    • Error Screen
    • Message
    • Meta
    • Notifications
    • Particle
    • Progress Bar
    • Save
    • Shard
    • Sound
    • Spinners
    • Task Timeline
  • Custom WebViews
    • Introduction
    • Your First Page
    • CSS Framework
  • Misc
    • Custom Sounds
    • Custom Streamers
    • Custom Icons
    • Adding Locale / Translations
    • Adding Vehicle Rules
    • Adding Whitelist
    • Adding Wheel Menus
    • Adding Parking Garages
Powered by GitBook
On this page
  • Weather Rotation
  • Customizing the Weather Rotation
Edit on GitHub
  1. Systems

Weather

Learn how weather works in Athena

PreviousTimeNextMenu Types

Last updated 3 years ago

The weather system in Athena is a bit different than normal systems. However, I will do my best to explain how this system works and why it was made in this way.

Rather than having region specific weather, weather works in 'waves'. A 'wave' is a specific weather type based on certain coordinates in the game.

Example Image with Region Index

Weather Rotation

The default weather rotation in Athena is as follows:

[
    'EXTRASUNNY',
    'EXTRASUNNY',
    'CLEAR',
    'CLOUDS',
    'OVERCAST',
    'RAIN',
    'THUNDER',
    'RAIN',
    'FOGGY',
    'OVERCAST',
    'CLEARING',
]

Which means that by default the starting weather for each region is as follows.

0 -> 'EXTRASUNNY',
1 -> 'EXTRASUNNY',
2 -> 'CLEAR',
3 -> 'CLOUDS',
4 -> 'OVERCAST',

When the weather rotates it takes the last element in the array and moves it to the front. Which means the next weather in the cycle for index 0 is CLEARING based on the default weather.

Customizing the Weather Rotation

You can technically insert any weather type into the weather rotation and the rotation can be as long as you want it to be. Here's an example of how to increase the rotation and have longer hours of each weather type.

It's a simple system but can easily be customized to create unique and predictable weather patterns based on your server needs.

[
    'EXTRASUNNY',
    'EXTRASUNNY',
    'EXTRASUNNY',
    'EXTRASUNNY',
    'CLEAR',
    'CLEAR',
    'CLOUDS',
    'CLOUDS',
    'CLOUDS',
    'OVERCAST',
    'OVERCAST',
    'OVERCAST',
    'RAIN',
    'RAIN',
    'RAIN',
    'THUNDER',
    'THUNDER',
    'THUNDER',
    'RAIN',
    'RAIN',
    'RAIN',
    'FOGGY',
    'FOGGY',
    'FOGGY',
    'OVERCAST',
    'OVERCAST',
    'CLEARING',
    'CLEARING',
    'CLEARING',
    'CLEARING',
]