Configuration


description: Configure commands, automation, permissions, cleanup rules, and the UI.

Configuration

Configuration

Configuration is split into two editable files, both marked as escrow_ignore in fxmanifest.lua so they always stay editable even if the resource is escrow-protected: shared/config/config.lua and shared/lang/lang.lua.

General

FieldDescription
Config.DebugEnables verbose console logging (ACE checks, countdown start, webhook status). Off by default.
Config.CountdownDefault countdown (in seconds) used when the start command is run with no arguments.

Commands

FieldDescription
Config.CmdStartCommand that opens the admin panel / starts a wipe. Default: carwipe.
Config.CmdCancelCommand to cancel an active wipe. Default: cancelcarwipe.
Config.CmdStatusCommand to check the remaining time. Default: carwipestatus.

ACE Permission

FieldDescription
Config.AcePermissionACE permission string required to use any carwipe command or panel action. Default: yei-carwipe.use.

{% hint style="info" %} Set it up in server.cfg with:

add_ace group.admin yei-carwipe.use allow
add_principal identifier.license:YOUR_LICENSE group.admin

{% endhint %}

Discord Logs

Config.DiscordLogs sends an embed to a Discord webhook for every wipe start, cancel, completion, and permission-denied attempt.

FieldDescription
enabledTurns log sending on/off.
webhookEmpty by default. If left empty, nothing gets sent — paste your webhook URL here.
botNameName shown as the embed author.
botAvatarAvatar of the bot posting the embed.
serverNameShown in every log embed as the server field.
colors.started / canceled / completed / nopermEmbed side-bar colors (decimal, not hex) for each event type.

{% hint style="info" %} Player names are automatically sanitized before being sent (backticks replaced, @ neutralized) to prevent broken embeds or accidental @everyone/@here pings from a malicious player name. {% endhint %}

Automatic Carwipe

Both automation modes are disabled by default — the script never wipes vehicles on its own unless you turn one of these on.

Config.Schedule — runs at fixed times of day.

FieldDescription
EnabledTurns scheduled wipes on/off.
TimesArray of "HH:MM" strings (24h format) — a wipe countdown starts automatically at each of these times.

Config.IntervalTime — runs on a repeating timer.

FieldDescription
EnabledTurns interval wipes on/off.
TimeInterval in minutes between automatic wipes.

{% hint style="warning" %} If both Schedule.Enabled and IntervalTime.Enabled are turned on at the same time, Schedule takes priority — the script skips re-arming the interval timer after a wipe if Schedule is active, to avoid both automations firing on top of each other. {% endhint %}

Vehicle / Object Settings

FieldDescription
Config.ObjectsIf true, props/objects are also deleted during a wipe (not just vehicles). Off by default.
Config.BlackListVehiclesList of vehicle model names (spawn codes) that should never be deleted, e.g. 'police', 'ambulance'.
Config.IgnoreZonesList of { Coords = vector3(x, y, z), Radius = number } — vehicles inside any of these zones are skipped.
Config.IgnoreZonesObjectsSame format as above, but for objects (only relevant if Config.Objects = true).

{% hint style="info" %} A vehicle is also automatically protected from deletion if it has a driver or any passengers, regardless of zones or blacklist. {% endhint %}

UI Settings

Config.UI controls the on-screen countdown card shown to every player during an active wipe.

FieldDescription
positionWhere the countdown card appears on screen. Options: top-left, top-center, top-right, center-left, center-center, center-right, bottom-left, bottom-center, bottom-right.
colors.primary / background / accent / secondary / highlightHex colors used to theme the countdown card and the admin panel.

Text customization (shared/lang/lang.lua)

SectionFields
Lang.NotifyAlreadyActive, NotActive, NotAllowed — chat/notify messages.
Lang.UItitle, subtitle, footerCanceled, footerCompleted, timeLabel, message — all text shown on the countdown card. message supports basic HTML (a <span class="highlight"> wrapper is used for emphasis).

{% hint style="info" %} After editing either config file, restart yei-carwipe is enough — no need to restart the whole server. {% endhint %}

Last updated on July 27, 2026
← Back to the store