Page cover

Server Cleaner

The Server Cleaner Script for FiveM is the one-stop solution for managing Server cleanup via in game, this script supports global sided changing, This script also has built in discord logging via webhooks and has Discord Role Permission or Ace Permissions!


  1. Chat

  2. GTA


If you don't have access to the menu

If you have permission to the menu, but don't have access to perform actions

Menu Preview, Only shows the options you have access to

10 Second Notification

5 Second Notification

Completed Notification

Discord Logging Preview


Config = {}
-----------------------------------------------------------------------------------------------------
-- Discord Logging Configuration
-----------------------------------------------------------------------------------------------------
Config.webhookUrl = "YOUR DISCORD WEBHOOK"
-----------------------------------------------------------------------------------------------------
-- Permission Configuration
-----------------------------------------------------------------------------------------------------
Config.Permission = "Discord" -- Options: "Discord", "Ace"
-----------------------------------------------------------------------------------------------------
-- Base Menu Permission Configuration
-----------------------------------------------------------------------------------------------------
Config.MenuPermission = "admin"  -- To Open The Menu
Config.DiscordRoleMenuPermission = "DISCORDROLEIDFORCLEANUPMENU"  -- To Open The Menu
-----------------------------------------------------------------------------------------------------
-- Ace Permission Configuration
-----------------------------------------------------------------------------------------------------
Config.vehicleClearPermission = "toggle-npc"
Config.propClearPermission = "toggle-npc"
Config.pedClearPermission = "toggle-npc"
Config.chatClearPermission = "toggle-npc"
Config.TriggerGlobalClear = "toggle-npc"
-----------------------------------------------------------------------------------------------------
-- Discord Role Permission Configuration
-----------------------------------------------------------------------------------------------------
Config.DiscordRolevehicleClearPermission = "DISCORDROLEIDFORCLEANUP1"
Config.DiscordRolepropClearPermission = "DISCORDROLEIDFORCLEANUP2"
Config.DiscordRolepedClearPermission = "DISCORDROLEIDFORCLEANUP3"
Config.DiscordRolechatClearPermission = "DISCORDROLEIDFORCLEANUP4"
Config.DiscordRoleTriggerGlobalClear = "DISCORDROLEIDFORCLEANUP5"
-----------------------------------------------------------------------------------------------------
-- Zone Cleanup Configuration
-----------------------------------------------------------------------------------------------------
Config.UseCleanupZones = true  -- Enable or disable cleanup zones
Config.CleanupZones = {
    {
        name = "Sandy Shores 24/7",
        coords = vector3(1983.33, 3765.33, 32.34),
        size = vector3(101.0, 60.0, 9999.0),
        rotation = 27.0,
        debug = false,
        time = 30,  -- Time before the zone is cleaned up
        timeType = "minutes",  -- Options: "seconds", "minutes", "hours"
        type = "all",  -- Options: "vehicles", "props", "peds", "all"
    }
}
-----------------------------------------------------------------------------------------------------
-- Notification Configuration
-----------------------------------------------------------------------------------------------------
Config.NotifyType = "Ox_lib"
Config.notifyTime = 5000  -- Duration of notifications (in milliseconds)
-- Available Notification Types
-- 1. VeniceNotify
-- 2. OkOkNotify
-- 3. ADNotify
-- 4. Ox_lib
-- 5. Chat
-- 6. GTA
-----------------------------------------------------------------------------------------------------
return Config

Last updated