# 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!

***

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FG7Ppyqch4zt8DljqHQgy%2Fimage.png?alt=media&#x26;token=8f310974-d6cb-4b38-9f82-09a8efba2c27" alt=""><figcaption></figcaption></figure>

1. [VeniceNotify](https://forum.cfx.re/t/codem-advancednotifysystem/4812202)
2. [OkOkNotify](https://forum.cfx.re/t/okoknotify-standalone-paid/3907758)
3. [Ox\_lib](https://github.com/overextended/ox_lib)
4. Chat
5. GTA

***

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FcjHtQH2wOzZHLKnlKate%2FPreview.png?alt=media&#x26;token=5ffabc92-3a40-471e-9e58-daa4e56f7c4b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FA6ZFtq61hGrfdYFlO4yU%2Fimage.png?alt=media&#x26;token=84a8f3f0-b520-46bc-9ecd-cfeb6788d204" alt=""><figcaption></figcaption></figure>

<p align="center">If you don't have access to the menu</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FSVnOH2lMHr74iX7rUygf%2Fimage.png?alt=media&#x26;token=49d990ce-3e6f-4895-953a-4bf830461f40" alt=""><figcaption></figcaption></figure>

<p align="center">If you have permission to the menu, but don't have access to perform actions</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FOcusq5GN4fQhWLFXxKJO%2Fimage.png?alt=media&#x26;token=7b690aeb-f713-4656-9090-bf02d5cfe95e" alt=""><figcaption></figcaption></figure>

<p align="center">Menu Preview, Only shows the options you have access to</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2F2ZEpD3fYOI97zMWLzOgM%2Fimage.png?alt=media&#x26;token=3f3b7694-e311-4a30-a0c0-ac7cd222d269" alt=""><figcaption></figcaption></figure>

<p align="center">10 Second Notification</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FBPQhkxN3B8MvOQ3qCdD2%2Fimage.png?alt=media&#x26;token=fcdf55ef-3879-4bb2-affe-2a0fb993c436" alt=""><figcaption></figcaption></figure>

<p align="center">5 Second Notification</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2Fdbfx0wOMfAu2fUDEYdoJ%2Fimage.png?alt=media&#x26;token=b6e889b3-ad68-4d14-8a44-35f2bdbea050" alt=""><figcaption></figcaption></figure>

<p align="center">Completed Notification</p>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2Fl5ysvwcvUrzO4mVJmeaN%2Fimage.png?alt=media&#x26;token=ea3b492d-fd46-42de-b52a-14bd4569277d" alt=""><figcaption></figcaption></figure>

<p align="center">Discord Logging Preview</p>

***

```lua
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

```

{% hint style="success" %}
Downloads

\[FREE] [Free Version](https://arcticdevelopment.tebex.io/package/6614351)

\[PAID] [Open Source Version](https://arcticdevelopment.tebex.io/package/6614356)
{% endhint %}
