> For the complete documentation index, see [llms.txt](https://fragmentdevelopment.gitbook.io/fivem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fragmentdevelopment.gitbook.io/fivem/paid-scripts/garage_creator/config.md). Agents can also search and read this documentation through its [MCP server](https://fragmentdevelopment.gitbook.io/fivem/~gitbook/mcp).

# Config

```lua
local Settings = {}

--[[
    Setting this option to true will
    enable debug mode, allowing additional
    logging and diagnostic information to be displayed.
]]
Settings.DebugEnabled = false
Settings.DebugPoints = false

--[[
    'auto' means it will automatically detect your Framework.

    Available options:
    - auto
    - ESX
    - QBCore
    - QBOX
    - standalone
    - custom
    You can also defined the options above manually as the value.
]]
Settings.Framework = 'auto'
Settings.Inventory = 'auto'

--[[
    'auto' means it will find your framework' language convar in your server.cfg, if it's not specified there, 'en' will be used.

    Compatible auto framework' language detection:
    - ESX: esx:locale
    - QBCore: qb_locale
    - QBOX: qb_locale

    Available options:
    - 'en' (English)
    - 'es' (Spanish)
    You can your own language in the locales/ directory.
]]
Settings.Language = 'auto'

Settings.Dispatch = {
    Enabled = true,
    resource = "auto", -- 'auto', 'origen_police', 'cd_dispatch', 'custom'
    jobs = {           -- Jobs to send the alert to, only for compatible dispatch resources or if you are using custom and want to use the provided dispatch alert function
        "police",
        "sheriff",
    }
}

Settings.AllowVehicleTransferToUser = true

Settings.RequireSameGarageToTakeout = true -- if false, users will be able to take vehicles out no matter what garage they are in

Settings.TextUI = "fm-textui"
Settings.UseInternalNotifications = false

Settings.ReturnVehicleFee = 2000
Settings.DestroyedThreshold = 100.0

Settings.Markers = {
    Enabled = true,

    types = {
        car = {
            markerId = 36,
            color = { r = 255, g = 255, b = 255, a = 100 },
            scale = { x = 1.0, y = 1.0, z = 1.0 },
        },
        air = {
            markerId = 34,
            color = { r = 255, g = 255, b = 255, a = 100 },
            scale = { x = 1.0, y = 1.0, z = 1.0 },
        },
        boat = {
            markerId = 35,
            color = { r = 255, g = 255, b = 255, a = 100 },
            scale = { x = 1.0, y = 1.0, z = 1.0 },
        },
    }
}

Settings.GarageBuilder = {
    defaultBlip = {
        sprite = 84,
        colour = 22,
        scale = 0.6
    },

    garageOptions = {
        { value = "PUBLIC" },
        { value = "PRIVATE" },
        { value = "CRIMINAL" },
        { value = "JOB" },
        { value = "IMPOUND" },
    }
}

-- If true, it will register the 'qb-vehiclekeys:server:AcquireVehicleKeys' event, allowing you to give keys to a player when they acquire a vehicle through other means (like a car shop script)
-- This event is avaible in qb-core and is very exploitable, so use it only if you need it and make sure to secure it properly
Settings.EnableAcquireVehicleKeysEvent = false

-- Si Keys.Enabled = true entonces tendra que tener la llave para encender el vehiculo
-- Aparte esta el sistema de lock
-- Y aparte esta el sistema de robos
Settings.Keys = {
    Enabled = true,

    commands = {
        keys = {
            "keys",
        },
        givekeys = {
            "givekeys",
            "gk"
        },
        removekeys = {
            "removekeys",
            "rk"
        },
    },

    CarJack = {
        Enabled = true,
        key = "E",

        minigame = {
            keysCount = 6,
            -- timeMs = 2200, -- 5 seconds
            timeMs = 5000, -- 5 seconds
        },

        useItems = false,   -- If false it will use CarJack.key
        removeItem = true, -- Remove item after usage?
        items = {
            ["lockpick"] = true,
        },

        whitelist = { -- These vehicles cannot be jacked
            ["stockade"] = true,
        },
    },

    Lock = {
        Enabled = true,

        key = "L",

        commands = {
            ["vehlock"] = true,
        },
    },
}

Settings.Impound = {
    Enabled = true,

    commands = { 'impound', 'iv' },

    durations = {
        { value = "1",   localeKey = "impound:1h" },
        { value = "2",   localeKey = "impound:2h" },
        { value = "3",   localeKey = "impound:3h" },
        { value = "6",   localeKey = "impound:6h" },
        { value = "12",  localeKey = "impound:12h" },
        { value = "24",  localeKey = "impound:24h" },
        { value = "48",  localeKey = "impound:48h" },
        { value = "72",  localeKey = "impound:72h" },
        { value = "96",  localeKey = "impound:96h" },
        { value = "120", localeKey = "impound:120h" },
        { value = "144", localeKey = "impound:144h" },
        { value = "168", localeKey = "impound:168h" },
        { value = "-1",  localeKey = "impound:-1" },
    }
}

Settings.FakePlates = {
    Enabled = true,

    install = {
        duration = 3000,
        commands = { 'installfakeplate', 'ifp' },

        allowEveryone = false, -- Allow everyone to install fake plates, if false it will check allowedJobs
        allowOwner = true,     -- Allow installing fake plates on their own vehicle
        allowedJobs = {
            -- [jobName: string] = minGrade: number
            ["mechanic"] = 2,
        },

        installItems = {
            require = true,

            items = {
                ["water"] = true,
                ["fakeplate"] = true,
            }
        }
    },

    remove = {
        commands = { 'removefakeplate', 'rfp' },

        allowEveryone = false, -- Allow everyone to remove fake plates, if false it will check allowedJobs
        allowOwner = true,     -- Allow removing fake plates from their own vehicle
        allowedJobs = {
            -- [jobName: string] = minGrade: number
            ["police"] = 2,
            ["mechanic"] = 2,
        },

        removeItems = {
            require = false,

            items = {
                ["fakeplate_remover"] = true,
            }
        }
    },
}

Settings.VehiclesCleanup = {
    Enabled = false,        -- Enables or disables the entire vehicle cleanup system

    AbandonTime = 300,     -- Time in seconds a vehicle must remain empty before being considered abandoned (300 = 5 minutes)
    CheckInterval = 60000, -- Interval in milliseconds between cleanup checks (60000 = 1 minute)

    MinDistance = 100.0,   -- Minimum distance (in units) from any player required to allow vehicle deletion

    -- Damage-based cleanup
    DeleteOnlyDamaged = true, -- If true, only vehicles below the damage threshold will be deleted; if false, all abandoned vehicles can be removed regardless of damage
    DamageThreshold = 300, -- Health threshold below which a vehicle is considered heavily damaged
}

Settings.MoneyType = 'bank' -- 'bank' | 'cash'
Settings.EnableLiveriesChanger = true

Settings.Registration = {
    Enabled = true,

    duration = 7, -- Days
    itemName = "vehicle_registration",

    ownershipVerification = false,

    allowedJobs = {
        ["police"] = 1,
    }
}

Settings.GarageShell = {
    Enabled = true,

    entrance = vec4(-1586.4049, -561.3813, 86.5005, 218.6116),

    positions = {
        vec4(-1576.9769, -565.1168, 86.5005, 164.3824),
        vec4(-1571.0525, -570.8471, 86.5005, 126.6199),
        vec4(-1568.8309, -577.8994, 86.5006, 79.9471),
        vec4(-1572.9537, -583.9575, 86.5006, 30.0481),
        vec4(-1579.1235, -585.0298, 86.5006, 353.0493),

        vec4(-1576.9769, -565.1168, 91.8457, 164.3824),
        vec4(-1571.0525, -570.8471, 91.8457, 126.6199),
        vec4(-1568.8309, -577.8994, 91.8457, 79.9471),
        vec4(-1572.9537, -583.9575, 91.8457, 30.0481),
        vec4(-1579.1235, -585.0298, 91.8457, 353.0493),

        vec4(-1576.9769, -565.1168, 97.1915, 164.3824),
        vec4(-1571.0525, -570.8471, 97.1915, 126.6199),
        vec4(-1568.8309, -577.8994, 97.1915, 79.9471),
        vec4(-1572.9537, -583.9575, 97.1915, 30.0481),
        vec4(-1579.1235, -585.0298, 97.1915, 353.0493),
    }
}

Settings.RentalDurations = {
    { label = "1_minute", value = 60 },
    { label = "5_minutes", value = 300 },
    { label = "10_minutes", value = 600 },
}

Settings.RateLimitingEnabled = false -- Set to false to disable rate limiting checks globally. Not recommended unless you have another rate limiting system in place or are not concerned about potential abuse of certain actions.
Settings.EnableCarwipe = true

--[[
    Vehicle images.

    When enabled:
    - The garage UI shows an image for every vehicle whose model has been captured.
    - The garage builder (/garages) shows a button to capture every vehicle model of the server
      and upload the PNGs to Fivemanage. Models that already have an image in Fivemanage are skipped.

    Requirements:
    - The 'screencapture' resource started.
    - Your Fivemanage API key in server.cfg (use 'set', never 'setr', so it is not sent to clients):
      set fm_garage_fivemanage_key "YOUR_API_KEY"
]]
Settings.VehicleImages = {
    Enabled = true,

    ApiKeyConvar = "fm_garage_fivemanage_key",
    FivemanagePath = "fm-garage/vehicles", -- Fivemanage folder. Also used to detect already uploaded images.

    -- Where the vehicles are photographed. High in the sky over the ocean so the background is clean.
    Location = vec4(-2200.0, -3400.0, 800.0, 150.0),
    Time = { hour = 12, minute = 0 },
    Weather = "EXTRASUNNY",

    Camera = {
        fov = 40.0,
        distanceMultiplier = 0.8, -- > 1.0 moves the camera away from the vehicle
        heightOffset = 0.15,      -- Camera height relative to the camera distance
        angle = -40.0,            -- Degrees around the vehicle (0 = front, 90 = right side, -90 = left side)
    },

    -- Draws a green screen behind the vehicle and removes it on the server,
    -- producing a transparent PNG cropped to the vehicle.
    RemoveBackground = {
        Enabled = true,
        threshold = 35, -- How much greener than red/blue a pixel must be to start becoming transparent
        softness = 55,  -- Range over which pixels fade from opaque to transparent (smoother edges)
        padding = 8,    -- Transparent pixels kept around the vehicle after cropping
    },

    Capture = {
        maxWidth = 1920,
        maxHeight = 1080,
        waitBeforeCapture = 250, -- ms to let textures stream before taking the picture (raise it if textures look blurry)
        modelLoadTimeout = 8000,
        preloadModels = 3,       -- Next models requested in advance while the current one is photographed
        uploadConcurrency = 4,   -- Images processed and uploaded to Fivemanage in parallel
    },

    ExcludedClasses = { 21 }, -- Vehicle classes to skip (21 = trains)
    ExcludedModels = {
        -- ["freight"] = true,
    },
}

--- DO NOT TOUCH THIS
local lib = lib
lib.locale()

return Settings
```
