> For the complete documentation index, see [llms.txt](https://arctic-development.gitbook.io/arctic-development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arctic-development.gitbook.io/arctic-development/scripts/carcols-fixer.md).

# Carcols Fixer

The Carcols Fixer **Script** for FiveM is the one-stop solution for managing Siren, Light & Modkit IDs In-Game!

***

<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&amp;token=8f310974-d6cb-4b38-9f82-09a8efba2c27" alt=""><figcaption></figcaption></figure>

1. [Ox\_lib](https://github.com/overextended/ox_lib)
2. Badger\_Discord\_API

***

<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&amp;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%2Fh012BfzCnB53hhHqPUsS%2F1.png?alt=media&amp;token=f8673290-f2e6-4f49-89b0-b8a553c0077c" alt=""><figcaption><p>Main Menu Preview</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FyDHWt8c7ZVieYDAWZqlC%2F2.png?alt=media&amp;token=7b2d4cec-9935-4ecb-b97a-fc91a8006d5c" alt=""><figcaption><p>Civilian Preview</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FEoKC4rWDiqaJ9jpLfu2y%2F3.png?alt=media&amp;token=148f3f30-6ec2-49db-a3b2-0e4f1a498310" alt=""><figcaption><p>Law Enforcement Preview</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FdjQhk2VRGWnctXcK8zCc%2F4.png?alt=media&amp;token=e058218e-0656-4d2a-89e7-f6fa63bd67c5" alt=""><figcaption><p>Sort Preview</p></figcaption></figure>

***

{% hint style="info" %}
Want to add a new category?
{% endhint %}

```lua
Config = {}
-----------------------------------------------------------------------------------------------------
-- Developer Settings
-----------------------------------------------------------------------------------------------------
Config.Debug = false -- Enable debug prints in the server console
Config.Command = 'carcolsfixer' -- Command used to open the in-game Carcols Fixer dashboard
Config.AllowConsole = true -- Allow the server console to use Carcols Fixer commands
Config.AutoScanOnStart = true -- Automatically scan vehicle resources when AD-CarcolsFixer starts
-----------------------------------------------------------------------------------------------------
-- Permission Settings
-----------------------------------------------------------------------------------------------------
Config.UsePermissionLock = true -- false will disable the permission lock meaning every user can use the system
Config.PermissionType = 'Ace' -- Choose 'Ace' or 'Discord' -- Badger_Discord_API is required for Discord Role Locking
Config.RequiredAcePermission = 'ad.carcolsfixer' -- ACE permission required when using Ace
Config.RequiredDiscordRoleIDs = { -- Discord Role IDs allowed to use the system when using Discord
    YOURDISCORDROLEID,
}
-----------------------------------------------------------------------------------------------------
-- ID Settings
-----------------------------------------------------------------------------------------------------
Config.SirenStartID = 100 -- Siren IDs begin here and continue upward with no maximum
Config.LightStartID = 100 -- Light IDs begin here and continue upward with no maximum
Config.ModkitStartID = 10000 -- Modkit IDs begin here and continue upward with no maximum
-----------------------------------------------------------------------------------------------------
-- Vehicle Grouping Settings
-----------------------------------------------------------------------------------------------------
-- These endings are removed when Carcols Fixer determines which vehicles belong to the same family.
-- Example: AD_18DHIGenericRaptorRB + AD_18DHIGenericRaptorBB = AD_18DHIGenericRaptor family
Config.VariantSuffixes = {
    'RWB', 'RBW', 'BRW', 'BWR', 'WRB', 'WBR',
    'RB', 'BB', 'RR', 'AA', 'WW',
    'BR', 'RW', 'WR', 'BW', 'WB',
    'RA', 'AR', 'BA', 'AB', 'WA', 'AW'
}

-- Controls which variant receives the first ID inside a vehicle family.
-- RB is first and BB is second, so a Raptor RB/BB family can become 100/101.
Config.VariantOrder = {
    'RB', 'BB', 'RR', 'AA', 'WW',
    'BR', 'RW', 'WR', 'BW', 'WB',
    'RA', 'AR', 'BA', 'AB', 'WA', 'AW',
    'RWB', 'RBW', 'BRW', 'BWR', 'WRB', 'WBR'
}

-- Optional manual family overrides for vehicles whose names do not follow your normal variant naming.
-- Example: ['AD_18DHI_Raptor_Slicktop'] = 'AD_18DHIGenericRaptor'
Config.FamilyOverrides = {
}
-----------------------------------------------------------------------------------------------------
-- Scanner Settings
-----------------------------------------------------------------------------------------------------
Config.IgnoredResources = { -- Resource names Carcols Fixer should completely ignore while scanning
    'AD-CarcolsFixer',
    'ox_lib',
    'monitor',
    'webadmin',
    'sessionmanager',
    'spawnmanager',
    'mapmanager',
    'chat',
    'hardcap',
    'rconlog'
}

Config.IgnoredFolders = { -- Folders ignored inside resources to make scans faster
    'stream',
    '.git',
    'node_modules',
    'web',
    'html',
    'dist',
    'build',
    'cache'
}

Config.MaxScanDepth = 20 -- Maximum folder depth Carcols Fixer will search inside each resource
-----------------------------------------------------------------------------------------------------
-- Backup Settings
-----------------------------------------------------------------------------------------------------
Config.UseBackups = true -- Create a safety backup before Carcols Fixer changes any vehicle files
Config.BackupAmount = 5 -- Maximum amount of backup snapshots to keep
-----------------------------------------------------------------------------------------------------
return Config

```

***

{% hint style="success" %}
Downloads

\[PAID | Open Source] [Official Store Link](https://arcticdevlabs.com/package/Script/Carcols-Fixer)
{% endhint %}
