# config.lua

```lua
Config = {}

Config.General = {
    newESX = true, -- true if you use the new ESX version

    shopCoords = vector4(268.71987915039, -1155.3666992188, 28.290948867798, 93.042747497559),
    buyCoords = vector4(250.12022399902, -1157.2799072266, 29.18236541748, 91.88256072998),
    testCoords = vector4(1353.0825195312, 628.15649414062, 80.510597229004, 309.92245483398),
    ped = "s_m_m_highsec_01",

    blip = {
        label = "Händler | VIP-Shop",
        sprite = 823,
        scale = 0.8,
        colour = 5,
    },
}

Config.bulletin = {
    use = true, -- True if you use bulletin Notifications
    resourceName = "modern_notify"
}

-- For Tebex you can use the addKey command to add keys to players
Config.Commands = {
    addKey = { 
        command = "addKey", -- Command to add keys
        onlyConsole = false, -- Only console can use this command
        groups = {"admin"}, -- Groups that can add keys
    },
    removeKey = { 
        command = "removeKey",
        onlyConsole = false,
        groups = {"admin"},
    },
    keys = {
        command = "keys",
    },
}

function Notify(text, type, source)
    if type == "client" then
        ESX.ShowNotification(text)
    elseif type == "server" then
        local xPlayer = ESX.GetPlayerFromId(source)
        xPlayer.showNotification(text)
    end
end

Config.Shop = {
    Keys = {
        { name = "Key1", label = "Stage 1"},
        { name = "Key2", label = "Stage 2"},
        { name = "Key3", label = "Stage 3"},
    },

    Vehicles = {

        ingame_money = { -- Categorys with ingame money currency 
            {
                catName = "VIP - Vehicles", -- Category name
                id = 1, -- Category ID (unique!!!)
                website = "https://six-6-services.tebex.io",
                cars = {
                    { model = "t20", label = "Rolls-Royce Spectre", price = 2000000, img = "https://img.gta5-mods.com/q85-w800/images/2024-rolls-royce-spectre-add-on-fivem/c30645-FiveM_b3095_GTAProcess_2024-06-04_18-47-46.jpg", type = "car"},
                }
            },
        },

        keys = { -- Categorys with (Tebex) Keys currency
            {
                id = 3, -- Category ID (unique!!!)
                catName = "Stage 1 - Vehicles", -- Category name 
                key = "Key1",
                website = "https://six-6-services.tebex.io",
                cars = {
                    { model = "minijcwgp20", label = "Mini - Chooper GP", img = "https://img.gta5-mods.com/q85-w800/images/mini-john-cooper-works-gp-2020/334362-1.jpg", type = "car"},

                }
            },
            {
                id = 4,
                catName = "Stage 2 - Vehicles",
                key = "Key2",
                website = "https://six-6-services.tebex.io",
                cars = {
                    { model = "police", label = "2019 Range Rover Velar",img = "https://img.gta5-mods.com/q75-w500-h333-cfill/images/2018-range-rover-velar/8c0bb7-QQ%E5%9B%BE%E7%89%8720190609113942.jpg", type = "car"},
                }
            },
            {
                id = 5,
                catName = "Stage 3 - Vehicles",
                key = "Key3",
                website = "https://six-6-services.tebex.io",
                cars = {
                    { model = "t20", label = "Mini - Chooper GP", img = "https://img.gta5-mods.com/q85-w800/images/mini-john-cooper-works-gp-2020/334362-1.jpg", type = "car"},
             }
            },
        },
    }
}
```


---

# Agent Instructions: 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:

```
GET https://6-services.gitbook.io/six/assets-paid/6-donationshop-esx/configuration/config.lua.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
