Auto Restart – Scheduling, Alerts & Automatic Restart

Auto Restart – Scheduling, Alerts & Automatic Restart 2025-06-25

Inscrivez-vous et acheter une licence pour 0.99 EUR
Addon Information
  • Name: Auto Restart
  • Author: Benjdiii
  • Main File: lua/autorun/server/auto_restart_notifier.lua
  • Dependencies: None
  • Installation: Simply place the file in your addons/ folder
  • Version: 1.0
Description

This script allows you to schedule multiple automatic restarts throughout the day and send progressive alerts to players beforehand.
Admins can also dynamically postpone a restart using the !repousser <minutes> command.

Ideal for RP, sandbox, or PvP servers that require regular maintenance cycles or resets.

Features
  • Schedule multiple restarts per day
  • Automatic alerts sent to players before each restart
  • Admin command to delay an upcoming restart in real-time
  • Automatic map reload with changelevel
  • No external addon required
  • Simple configuration using a Lua table
  • Chat-friendly messages for players
  • Lightweight and optimized – no performance impact
Configuration

Inside the auto_restart_notifier.lua file, you can customize:

lua
CopierModifier
-- Restart times (hour, minute, second)
restarts = {
{ hour = 4, min = 0, sec = 0 },
{ hour = 12, min = 0, sec = 0 },
{ hour = 20, min = 0, sec = 0 },
}

-- Alert delays before restart (in seconds)
alerts = {
1800, -- 30 minutes
600, -- 10 minutes
60, -- 1 minute
10, -- 10 seconds
}

-- Message format (use %time% to insert remaining time)
messageFormat = "[Server] Restart scheduled in %time%!"

-- Enable or disable automatic restarts
autoRestart = true
  • image_2025-06-25_181238517.png
    image_2025-06-25_181238517.png
    13.1 KB Vues: 46
  • image_2025-06-25_181252055.png
    image_2025-06-25_181252055.png
    14.3 KB Vues: 16
  • Oula
Réactions: noah_ballas
Auteur
Banjdx
Téléchargements
1
Type
Produit numérique
Durée de la licence
Unlimited
Prix
0.99 EUR
Vues
137
Première sortie
Dernière mise à jour
Évaluation
0.00 étoiles(s) 0 appréciations

Autres ressources de Banjdx

Rejoignz-nous sur Discord