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

# Config

```
Config = {}

Config.Framework = "auto"   -- "esx", "qbcore", "auto"
Config.Locale    = "en"     -- "en", "sv"
Config.Debug     = false

Config.NotificationType = "auto"  -- "auto", "esx", "qbcore", "ox", "custom"

Config.CustomNotify = function(source, message, notifyType)
    -- TriggerClientEvent('yournotify:send', source, message, notifyType)
end

-- Prop-mode: an admin places a world prop that opens the garage
Config.PropOpenMode = {
    defaultModel        = 'prop_parkingpay',
    targetIcon          = 'fas fa-warehouse',  -- ox_target only
    interactionDistance = 2.5,

    -- "ox_target" / "3d" / "helptext"
    interactionStyle = "3d",

    -- Models the admin can cycle through during placement (F key)
    models = {
        'prop_parkingpay',
        'prop_phonebox_04',
        'prop_atm_01',
    },
}

Config.MarkerDrawDistance = 20.0
Config.GarageMarkerSize   = 2.0   -- diameter, trigger = half
Config.StoreMarkerSize    = 5.0

-- "helptext" / "3d" / "ox"
Config.MarkerTextStyle = "3d"

Config.Keys = {
    openMenu     = 38,  -- E - open garage
    storeVehicle = 38,  -- E - store vehicle
}

Config.SaveVehicleData = {
    fuel   = true,
    engine = true,
    body   = true,
    mods   = true,
}

Config.Impound = {
    enabled              = true,
    defaultFee           = 5000,
    feePerHour           = 100,   -- 0 = disabled
    maxFee               = 50000,
    currency             = "bank",  -- "cash" / "bank"
    autoImpoundOnDespawn = true,
    canDeliverToImpound  = false,
}

Config.Webhooks = {
    enabled  = false,
    store    = "",
    retrieve = "",
    impound  = "",
    release  = "",
}

-- Shows vehicle brand/model info pulled from newily_dealership.
-- NOTE: requires newily_dealership v2+
Config.Dealership = {
    enabled = true,
}

Config.AdminPanel = {
    command        = "garageadmin",
    permissionType = "group",  -- "group" / "identifier"
    groups         = { "admin", "superadmin" },
    identifiers    = {
        -- "license:xxx",
        -- "discord:xxx",
    },
}

-- Internal

function Config.HexToRGBA(hex, alpha)
    alpha = alpha or 180
    hex = hex:gsub("#", "")
    return {
        r = tonumber(hex:sub(1, 2), 16),
        g = tonumber(hex:sub(3, 4), 16),
        b = tonumber(hex:sub(5, 6), 16),
        a = alpha
    }
end

function Config.GetMarkerColor(marker)
    if type(marker.color) == "string" then
        return Config.HexToRGBA(marker.color, marker.alpha or 180)
    else
        return marker.color
    end
end

function Config.GetGarage(garageId) return nil end
function Config.GetAllGarages() return {} end
function Config.GetImpoundGarages()
    local all = Config.GetAllGarages()
    local impounds = {}
    for id, garage in pairs(all) do
        if garage.type == "impound" then impounds[id] = garage end
    end
    return impounds
end

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://newily-scripts.gitbook.io/newily-scripts-docs/documentation/scripts/newily-garage/config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
