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

# Configuration

### config.lua:

```lua
MS_GARAGE = {}

MS_GARAGE.Locale = "de" -- "de" or "en"

MS_GARAGE.Layout = {
    title = "GARAGE", -- title of the garage
    subtitle = "SYSTEM", -- subtitle of the garage
    description = "Hier kannst du deine Fahrzeuge parken und ausparken", -- description of the garage
    search = "Suche nach einem Fahrzeug ...", -- Placeholder
    parked = "Eingeparkt", -- Stats
    notParked = "Ausgeparkt", -- Stats
    favourite = "Favoriten", -- Stats
    impound = "Abschlepphof", -- Stats
    parkout = "Ausgeparkt", -- Action
    parkin = "Eingeparkt", -- Action
    towed = "Abgeschleppt", -- Info
}

MS_GARAGE.Settings = {
    store_on_restart = true, -- store vehicles from impound to garage on resource restart
    radiusforparking = 25.0, -- park in radius
    tpintovehicle = true, -- warp into vehicle after parking
    interaction_timeout = 5000, -- 5 Seconds timeout for interaction
    Notifys = "ESX", -- notify system (Moon_Hud)
    blacklist = { -- blacklist for vehicle names
        ">",
        "<",
        "nigger",
        "negga",
        "niga",
        "nega",
        "hitler",
        "adolf",
        "nazi",
        "faggot",
        "script",
        "xss",
        "iframe",
        "https",
        "mp3",
        "mp4",
        "onclick",
        "onload",
        "url",
        "data",
    },
}

MS_GARAGE.CarClear = {
    enabled = true, -- if enabled the vehicles will be deleted after despawn_time
    interval = 1, -- interval in minutes (thread)
    player_radius = 25.0, -- will not delete vehicles in radius from player

    announcements = { -- announcements for despawn (despawn_time)
        { time = 5 * 60 * 1000, message = "Alle Leerstehenden Fahrzeuge werden in 5 Minuten automatisch abgeschleppt" },
        { time = 4 * 60 * 1000, message = "Alle Leerstehenden Fahrzeuge werden in 4 Minuten automatisch abgeschleppt" },
        { time = 3 * 60 * 1000, message = "Alle Leerstehenden Fahrzeuge werden in 3 Minuten automatisch abgeschleppt" },
        { time = 2 * 60 * 1000, message = "Alle Leerstehenden Fahrzeuge werden in 2 Minuten automatisch abgeschleppt" },
        { time = 1 * 60 * 1000, message = "Alle Leerstehenden Fahrzeuge werden in 1 Minute automatisch abgeschleppt" },
        { time = 30 * 1000, message = "Alle Leerstehenden Fahrzeuge werden in 30 Sekunden automatisch abgeschleppt" }
    },

    whitelist = { -- whitelist for vehicles that will not be deleted
        "journey",
        "mule4",
        "mule5",
    },
}

MS_GARAGE.Positions = {
    {
        closed = false, -- if closed is true the garage/impound is not accessible
        type = "car", -- stores after car in database
        sort = "garage",
        coords = vec3(-70.3738, -1830.4091, 26.9419),
        radius = 1.5, -- check if any vehicle is in radius
        position = {
            vec4(-62.6174, -1840.2391, 26.2739, 319.1931),
            vec4(-59.6650, -1842.5426, 26.1660, 319.0040),
        },

        ped = {
            enabled = true,
            model = "s_m_m_autoshop_01",
            scenario = "WORLD_HUMAN_CLIPBOARD",
            heading = 230.0344,
        },

        marker = {
            enabled = true, -- shows/hides the marker
            type = 0, -- marker type
            scale = { -- marker scale
                x = 0.7,
                y = 0.7,
                z = 0.7,
            },
            color = { -- marker color
                r = 83,
                g = 255,
                b = 169,
                a = 144,
            },
            bobUpAndDown = true, -- will the marker bob up and down
            faceCam = false, -- will the marker face the camera
            rotate = true, -- will the marker rotate
            distance = 15.0, -- see marker in range
            interact = 1.5, -- interaction range
        },

        blip = {
            enabled = true, -- Enable or disable (true, false)
            sprite = 473, -- https://docs.fivem.net/docs/game-references/blips/
            color = 0,
            scale = 0.8,
            shortrange = true,
            label = "Garage"
        },

        jobs = { -- accessable jobs
            enabled = false, -- if enabled the jobs will be checked
            access = { "police", "ambulance" } -- jobs that can access the impound/garage
        },
    },

    -- [[ BOAT ]] --
    {
        closed = false, -- if closed is true the garage/impound is not accessible
        type = "boat", -- stores after boat in database
        sort = "garage",
        coords = vec3(1313.1196, 4231.8687, 33.9155),
        radius = 1.5, -- check if any vehicle is in radius
        position = {
            vec4(1314.0487, 4219.3706, 32.2499, 260.4119),
        },

        ped = {
            enabled = true, -- if ped is disabled it shows the marker
            model = "s_m_m_autoshop_01",
            scenario = "WORLD_HUMAN_CLIPBOARD",
            heading = 137.3792,
        },

        marker = {
            enabled = true, -- shows/hides the marker
            type = 0, -- marker type
            scale = { -- marker scale
                x = 0.7,
                y = 0.7,
                z = 0.7,
            },
            color = { -- marker color
                r = 83,
                g = 255,
                b = 169,
                a = 144,
            },
            bobUpAndDown = true, -- will the marker bob up and down
            faceCam = false, -- will the marker face the camera
            rotate = true, -- will the marker rotate
            distance = 15.0, -- see marker in range
            interact = 1.5, -- interaction range
        },

        blip = {
            enabled = true, -- Enable or disable (true, false)
            sprite = 473, -- https://docs.fivem.net/docs/game-references/blips/
            color = 0,
            scale = 0.8,
            shortrange = true,
            label = "Garage"
        },

        jobs = { -- accessable jobs
            enabled = false, -- if enabled the jobs will be checked
            access = { "police", "ambulance" } -- jobs that can access the impound/garage
        },
    },

    -- [[ AIRCRAFT ]] --
    {
        closed = false, -- if closed is true the garage/impound is not accessible
        type = "aircraft", -- stores after aircraft in database
        sort = "garage",
        coords = vec3(1726.1747, 3287.5159, 41.1400),
        radius = 1.5, -- check if any vehicle is in radius
        position = {
            vec4(1716.5931, 3254.3501, 41.1284, 102.6259),
        },

        ped = {
            enabled = true, -- if ped is disabled it shows the marker
            model = "s_m_m_autoshop_01",
            scenario = "WORLD_HUMAN_CLIPBOARD",
            heading = 193.6368,
        },

        marker = {
            enabled = true, -- shows/hides the marker
            type = 0, -- marker type
            scale = { -- marker scale
                x = 0.7,
                y = 0.7,
                z = 0.7,
            },
            color = { -- marker color
                r = 83,
                g = 255,
                b = 169,
                a = 144,
            },
            bobUpAndDown = true, -- will the marker bob up and down
            faceCam = false, -- will the marker face the camera
            rotate = true, -- will the marker rotate
            distance = 15.0, -- see marker in range
            interact = 1.5, -- interaction range
        },

        blip = {
            enabled = true, -- Enable or disable (true, false)
            sprite = 473, -- https://docs.fivem.net/docs/game-references/blips/
            color = 0,
            scale = 0.8,
            shortrange = true,
            label = "Garage"
        },

        jobs = { -- accessable jobs
            enabled = false, -- if enabled the jobs will be checked
            access = { "police", "ambulance" } -- jobs that can access the impound/garage
        },
    },

    -- [[ IMPOUND ]] --
    {
        closed = false, -- if closed is true the garage/impound is not accessible
        type = "car", -- stores after car in database
        sort = "impound",
        coords = vec3(409.2464, -1622.9989, 29.2919),
        radius = 1.5, -- check if any vehicle is in radius
        position = {
            vec4(396.5669, -1644.1001, 28.8798, 321.0388),
            vec4(396.5669, -1644.1001, 28.8798, 321.0388),
        },

        ped = {
            enabled = true, -- if ped is disabled it shows the marker
            model = "s_m_m_autoshop_01",
            scenario = "WORLD_HUMAN_CLIPBOARD",
            heading = 227.0673,
        },

        marker = {
            enabled = true, -- shows/hides the marker
            type = 0, -- marker type
            scale = { -- marker scale
                x = 0.7,
                y = 0.7,
                z = 0.7,
            },
            color = { -- marker color
                r = 83,
                g = 255,
                b = 169,
                a = 144,
            },
            bobUpAndDown = true, -- will the marker bob up and down
            faceCam = false, -- will the marker face the camera
            rotate = true, -- will the marker rotate
            distance = 15.0, -- see marker in range
            interact = 1.5, -- interaction range
        },

        blip = {
            enabled = true, -- Enable or disable (true, false)
            sprite = 67, -- https://docs.fivem.net/docs/game-references/blips/
            color = 0,
            scale = 0.8,
            shortrange = true,
            label = "Abschlepphof"
        },

        jobs = { -- accessable jobs
            enabled = false, -- if enabled the jobs will be checked
            access = { "police", "ambulance" } -- jobs that can access the impound/garage
        },

        impound = { -- only for impound
            price = 3500, -- price to restore a vehicle
            account = "bank", -- account to restore a vehicle
            parkout_after = false, -- if true the vehicle will be parked out after restoring
        },
    },
}
```
