Skip to content

Natural Disasters

A comprehensive natural disaster system for FiveM servers featuring dynamic weather, blackouts, and multiple disaster types.

Natural Disasters is a comprehensive weather and disaster system that brings dynamic environmental challenges to your FiveM server. The system includes multiple disaster types, weather synchronization, blackout mechanics, and seamless integration with popular sound systems.

  • Multiple Disaster Types - Tornadoes, earthquakes, tsunamis, and more
  • Dynamic Weather System - Built-in weather and time management
  • Blackout Mechanics - Realistic power outages during disasters
  • Sound Integration - Support for xSound and PlayCustomSounds
  • Framework Compatibility - Works with ESX, QBCore, and standalone setups
  • OneSync Compatible - Legacy and Infinity support
  • DLC Expansion - 5 additional content packs available
  • Lightweight - Minimal performance impact
  • Escrow Protection - Secure resource protection

DLC Packs:

  • Base resource required for DLC 1
  • DLC 1 required for DLC 2
  • DLC 2 required for DLC 3
  • DLC 3 required for DLC 4
  • DLC 4 required for DLC 5

Got all of the Natural Disasters? Install just DLC5, this contains all code required. The latest resource is the one you install! The pack includes Air Raid Sirens which you can separately install.

Watch the video showcase:

Download this resource via CFX Portal Assets after purchasing.

If you are using the built-in sound system, skip this step and proceed to resource installation.

  1. Download Sound Resources:

  2. Install Sound Resources:

    • Drag “PlayCustomSounds” and/or “xsound” into your /resources/ folder
    • If using Air Raid Sirens integration, you’ll need both resources
  3. Configure Server.cfg:

    ensure xsound
    • xSound must be placed high in server.cfg
    • Download fresh from GitHub for best compatibility
  4. Add Sound Files:

    • Copy .ogg sound files from the SoundFiles folder (in your purchased resource)
    • Add them to your chosen sound resource
    • For xSound: Update c_functions.lua with your desired sound URL
  5. Configure Dependencies:

    • If using xSound: Add dependency 'xsound' to fxmanifest.lua
    • If not using xSound: Comment out or remove the dependency line
    • Example: -- dependency 'xsound'
  1. Install only the latest DLC you own!
    • Note: If installing DLC upon the base edition, replace the base resource completely
  2. Configure natural_disasters/config/config.lua for customization
  3. Add to server.cfg:
    ensure night_natural_disasters
  4. Make sure you have only ONE weather and time system active in your server. (Recommended to use the built in & delete any others)
  5. Restart the server.

Choose from multiple permission systems:

  1. Discord API: Discord API Documentation
  2. Ace Permissions: Ace Permissions Documentation
  3. Framework Groups: Configure QBCore or ESX group names
  4. Everyone: Default setting (no restrictions)
  • Remove/disable other weather/time systems on your server
  • Built-in system handles all weather and time management
  • Disable built-in weather in config.lua
  • Use compatible weather scripts:
    • qb-weathersync
    • cd_easytime
    • vSyncR

Free Weather Script Edits: Available in our Discord #free-files channel (requires @Customer role)

  1. Navigate to NUI/sounds/ folder
  2. Add your .ogg sound file
  3. Configure filename (without .ogg extension) in config/config.lua
  1. Navigate to night_air_raid_sirens/NUI/sounds/ folder
  2. Add your sound file
  3. Configure in main config: SoundFileNameForAirRaidSirens = "yourfilename"
-- Disaster Management
exports.night_natural_disasters:SpawnDisaster(id)
exports.night_natural_disasters:StopDisaster(id)
-- Weather & Time Control
exports.night_natural_disasters:NextWeatherStage()
exports.night_natural_disasters:SetWeather(weatherType)
exports.night_natural_disasters:SetTime(hour, minute)
-- System Toggles
exports.night_natural_disasters:ToggleBlackout()
exports.night_natural_disasters:ToggleFreezeTime()
exports.night_natural_disasters:ToggleDynamicWeather()
-- Status Checks
exports.night_natural_disasters:GetCurrentWeather() -- returns "EXTRASUNNY" for example (string)
exports.night_natural_disasters:GetIsBlackoutActive() -- returns true or false (boolean)
exports.night_natural_disasters:GetIsTimeFrozen() -- returns true or false (boolean)
exports.night_natural_disasters:GetIsWeatherDynamic() -- returns true or false (boolean)
-- External Sound Integration
exports[Config.Integrations.CustomSoundResource]:StartExternalSound(coords, disasterID, soundFileName, soundFileVolume)
-- Synchronization Control
exports.night_natural_disasters:PauseSynchronization(boolean) -- Used by housing system scripts for weather & disaster proof interiors.
  1. Parsing Errors in F8 Console

    • Ensure you follow the exact file transfer order
    • Use binary FTP transfer mode
    • Don’t rename the script
  2. Weather Flickering

    • Disable conflicting weather systems
    • Use our free weather script edits from Discord
    • Ensure proper weather compatibility
  3. Sound Issues

    • Verify sound files are in correct format (.ogg)
    • Check file paths in configuration
    • Ensure sound resource is properly installed
  4. Permission Problems

    • Verify Discord API setup
    • Check Ace permissions configuration
    • Confirm framework group names
  1. Installation Order

    • Always install the latest DLC version
    • Remove older versions completely
    • Install Air Raid Sirens separately if needed
  2. Configuration

    • Read through config.lua thoroughly
    • Test settings on a development server first
    • Backup configurations before major changes
  3. Performance

    • Monitor server performance during disasters
    • Adjust disaster frequency as needed
    • Use appropriate sound file sizes
  1. DLC 5 (contains all previous content) - Purchase
  2. Air Raid Sirens (optional integration) - Purchase
  • Review this guide thoroughly before seeking support
  • Check configuration settings carefully
  • Verify all prerequisites are met

Join our Discord community for assistance:

Nights Software Discord

  • Create a ticket in our Discord support system
  • Provide detailed error messages and configuration
  • Include server logs when possible