[Release] ESX Maintenance System

Hello everyone, this is my first ever release, and I hope it’s useful for people out there that like me were having a bad day, specially with new server owners, we tend to be working daily on our servers and we tend to be using our server for changes the majority of the time, and we have people that keep entering on and off, so we need something that keeps people off for a while until we finish our thing…

And even so, even when you’re just updating stuff in your server and you want to work alone, you can use this resource as well.

This is ESX Maintenance. Your own personal bouncer.

As the name implies, this will allow you to put your server under maintenance mode that will keep people away for until you decide that they can come back…


Get It Here:

ESX Maintenance - GitHub


Installation:

  1. Extract the esx_maintenance-master.zip under your resources/[esx] and then rename the folder to esx_maintenance (without -master)…
  2. Go to your server.cfg add this line:
    start esx_maintenance
    

Done!


Usage

To enable or disable while your server is running, simply go to the config.lua do what you wanna do (disable or enable maintenance mode / true or false) then simply go to the FiveM-CLI and type restart esx_maintenance that should update the resource.


Changelog:

  • 1.0 (2/22/18): Initial Release
8 Likes

sv_master1 " "

1 Like

People that connects with the server IP will still be able to get in… just sayin.

Umm… Wait What? I am connecting through the Server IP itself [IP:PORT] and the system works? how is it not working for you then?

That was a response to guy suggesting wiping sv_master1 cvar would give the same effect, your system works great. Thanks for it!

2 Likes

Oh Legit! Phew Had me sweating already haha, No problem hope you like it and it’s useful! :smiley:

2 Likes

Can you maybe release this for Non-ESX, I don’t use ESX but would really love to give this a try.

this is great so now i dont have random people joining my server when im working on it!!

1 Like

Will see if I can convert it

this isnt working for me I am able to connect still even though I’m not on the whitelist.

This could this kinda be a whitelist script?

Yap

(This is a 20 characters limit bypass)

I put this in my server, add my steam id to the config and it will not allow me to connect to the server, any assistance

1 Like

when someone is not allowed they just get

Connecting to Server Attempt… 1…2…3

Failed to connect after 3 attempts

they don’t get the kick message

yeap i also have this problem lol

doesnt work for me, if i put a second steam id, then both cant join

this is my config:

cfg = {}

cfg.isOnMaintenance = true – TRUE = is on Maintenance | FALSE = is NOT on maintenance. Ez-Pz.
cfg.AllowedIDs = { – Allowed/Whitelisted SteamIDs
“steam:11000010361d3df”,
“steam:11000010b2b8056”,

}