Ghost Demon RESTART STORM

:high_voltage: Ghost Demon Mods – Restart Storm

Bring the thunder before a server restart! This script creates a cinematic storm event, warns your players, and gives a proper countdown before a restart. Perfect for Ghost Demon RP or any Old West-themed FiveM server.


Features

  • Automatic storm triggered before server restart.
  • Configurable countdown with optional minute-by-minute alerts.
  • Pre-alert and final alert notifications for players.
  • Manual storm cancellation via /stormcancel.
  • Full server-client weather synchronization via WeatherSync.
  • Customizable weather types, durations, and notifications.

Dependencies

  1. txAdmin – Handles scheduled restart events.
  2. WeatherSync – Controls weather globally on server and clients.
  3. BLN Notify – Sends all notifications (alerts, countdowns).

Installation

  1. Place the folder in your resources directory.
  2. Ensure dependencies are installed: txAdmin, weathersync, bln_notify.
  3. Add the resource to your server.cfg:
  4. Configure your settings in config.lua.

Config Example (config.lua)

Config = {}

-- Minutes before restart when storm starts
Config.stormStartMinutes = 15

-- Pre-alert times (minutes)
Config.preAlertMinutes = 5
Config.finalAlertMinutes = 1

-- Notification settings
Config.notifyDuration = 7000 -- milliseconds
Config.countdownNotify = true -- enable minute-by-minute countdown

-- Weather settings
Config.stormWeather = "thunderstorm"
Config.clearWeather = "sunny"
Config.weatherTransitionTime = 15.0

Usage

  • Storm is automatically triggered by txAdmin restart events.
  • Pre-alert and final alerts show notifications to players automatically.
  • Admins can manually cancel storms with the command:
/stormcancel

File Structure

restart_storm/
├── client.lua
├── server.lua
├── config.lua
└── fxmanifest.lua

fxmanifest.lua Example

fx_version 'cerulean'
game 'gta5'

author 'Ghost Demon Mods'
description 'Restart Storm – triggers a cinematic storm before server restart'
version '1.0.0'

shared_script 'config.lua'
client_script 'client.lua'
server_script 'server.lua'

Links & Resources


Why Buy This Script ($10)

  • Saves you time: plug-and-play with full client/server setup.
  • Immersive Old West-style weather and alerts.
  • Fully configurable to your server’s schedule and style.
  • Tested for CFX/txAdmin compatibility.
1 Like