# Configuration

{% tabs %}
{% tab title="QBCore" %}

```lua
Config = Config or {}

Config.Payment = "cash"             -- Payment "cash" or "bank"   ## CASH ALWAYS RECOMMEND ##
Config.PaymentForJobs = false       -- If false Whitelisted jobs dont pay for any tuning
Config.SocietyPayment = false       -- If PaymentForJobs & SocietyPayment true all payments will be charged from the society account of the players job (ESX: "society_mechanic") - QBCore (qb-management) or ESX (esx_society/esx_addonaccount)
Config.Keys = {
    action = { key = 38 }
}

Config.MechanicExtras = {
    RepairTime = 4000,              -- 4 Seconds
    drawDistance = 20.0,            -- Marker distance
    actionDistance = 5.0,           -- Distance to enter customs
    menuDistance = 1.0,             -- Distance to open bossmenu
    setmarker = true,               -- Enable/Disable marker
    showCustomsNotify = true,       -- Enable/Disable notify from LS Customs
    markercolor = { r = 50, g = 200, b = 160 },
    markerscale = { x = 2.5, y = 2.5, z = 2.5 },
    markerid = 27,
    NotifyText = "new3d",           -- drawtext / default / new3d
}

Config.UseCommandForMenu = {
    Enable = true,
    Command = "openmech",
    Jobs = {
        "mechanic",
        "tuner",
    }
}

Config.JobsGetCashPerCustom = {
    Enable = false,         -- If true only whitelisted jobs can get rewards
    Payment = "society",    -- "cash", "bank", or "society" // Society: (ESX: "society_mechanic")
    Reward = 10,            -- 25$ for each tuning
}

Config.SetBossmenu = true   -- QBCore (qb-management) or ESX (esx_society)
Config.Bossmenu = {         -- You can add as many locations as you want // QBCore (qb-management) or ESX (esx_society)
    vector3(951.24, -968.43, 39.51),
    vector3(124.99, -3010.63, 7.04),
    vector3(968.66, -1833.59, 31.26),
}

{
    pos = vector3(732.07, -1088.55, 22.17),         -- vector3(732.07, -1088.55, 22.17) or xyz example: {x = 732.07, y = -1088.55, z = 22.17}
    whitelistJobName = {                            -- Add as many jobs as you want / Only whitelisted jobs can see "Upgrades"
        [1] = 'mechanic', 
        [2] = 'tuner', 
    },
    setWhitelist = false,                           -- If false then everyone can use tuning on this location
    enableUpgrade = true,                           -- If true then Upgrades will show up
    label = "LS Customs",
    blipsprite = 72,
    blipcolor = 5,
    blipscale = 0.6,
    blipdisplay = 4,
    showBlip = true,
},

Config.Positions = {        -- You can add as many locations as you want, follow the guide below. Copy paste and fill the sections with your coordinates etc.
    {
        pos = vector3(732.07, -1088.55, 22.17),         -- vector3(732.07, -1088.55, 22.17) or xyz example: {x = 732.07, y = -1088.55, z = 22.17}
        whitelistJobName = {                            -- Add as many jobs as you want / Only whitelisted jobs can see "Upgrades"
            [1] = 'mechanic', 
            [2] = 'tuner', 
        },
        setWhitelist = false,                           -- If false then everyone can use tuning on this location
        enableUpgrade = true,                           -- If true then Upgrades will show up
        label = "LS Customs",
        blipsprite = 72,
        blipcolor = 5,
        blipscale = 0.6,
        blipdisplay = 4,
        showBlip = true,
    },
    {
        pos = vector3(-211.35, -1323.07, 30.89),        -- vector3(-211.35, -1323.07, 30.89) or xyz example: {x = -211.35, y = -1323.07, z = 30.89}
        whitelistJobName = {                            -- Add as many jobs as you want / Only whitelisted jobs can see "Upgrades"
            [1] = 'mechanic', 
            [2] = 'tuner', 
        },
        setWhitelist = true,                            -- If false then everyone can use tuning on this location
        enableUpgrade = true,                           -- If true then Upgrades will show up
        label = "Bennys Motorwork",
        blipsprite = 72,
        blipcolor = 3,
        blipscale = 0.6,
        blipdisplay = 4,
        showBlip = true,
    },
    --[[{ -- Example of copy and paste - Do not forget to change the "pos" coordinates 
        pos = {x = COORDS, y = COORDS, z = COORDS},
        whitelistJobName = {                            -- Add as many jobs as you want / Only whitelisted jobs can see "Upgrades"
            [1] = 'mechanic', 
            [2] = 'tuner', 
        },
        setWhitelist = true,                            -- If false then everyone can use tuning on this location
        enableUpgrade = true,                           -- If true then Upgrades will show up
        label = "Bennys Motorwork",                     -- Blip name
        blipsprite = 72,
        blipcolor = 3,
        blipscale = 0.6,
        blipdisplay = 4,
        showBlip = true,
    },]]
}

Config.Lang = {
    -- [en]
    ["key_pressed"] = "Press ~INPUT_CONTEXT~ to enter customs",
    ["bossmenu_key_pressed"] = "Press ~INPUT_CONTEXT~ to open Bossmenu",
    ["drawtext"] = "[~y~E~w~] Enter customs",
    ["bossmenu_drawtext"] = "[~y~E~w~] Open Bossmenu",

    -- Notifys
    ["fixing_car"] = "Fixing the vehicle...",
    ["cleaning_car"] = "Cleaning the vehicle...",
    ["command"] = "Open mechanic menu",
    ["command_error"] = "You have no rights to do this",
    ["successful"] = "You have successfully modified the car!",

    -- Company/Society
    ["company_paid"] = "Company Paid ",
    ["employee_check"] = "Employee Paycheck",
    ["info"] = "The company got ~g~",
    ["info2"] = "$~w~ for each tuning. Well done!",
}
```

{% endtab %}

{% tab title="ESX" %}

```lua
Config = Config or {}

Config.Payment = "cash"             -- Payment "cash" or "bank"   ## CASH ALWAYS RECOMMEND ##
Config.PaymentForJobs = false       -- If false Whitelisted jobs dont pay for any tuning
Config.SocietyPayment = false       -- If PaymentForJobs & SocietyPayment true all payments will be charged from the society account of the players job
Config.Keys = {
    action = { key = 38 }
}

Config.MechanicExtras = {
    RepairTime = 4000,              -- 4 Seconds
    drawDistance = 10.0,            -- Marker distance
    actionDistance = 5.0,           -- Distance to enter customs
    menuDistance = 2.0,             -- Distance to open bossmenu
    setmarker = true,               -- Enable/Disable marker
    showCustomsNotify = true,       -- Enable/Disable notify from LS Customs
    markercolor = { r = 220, g = 180, b = 40 },
    markerscale = { x = 2.5, y = 2.5, z = 2.5 },
    markerid = 27,
    NotifyText = "new3d",           -- default / new3d
}

Config.UseCommandForMenu = {
    Enable = true,
    Command = "openmech",
    Jobs = {
        "mechanic",
        "tuner",
    }
}

Config.GlobalCommandForMenu = {
    Enable = false,
    Command = "openmech",
}

Config.JobsGetCashPerCustom = {
    Enable = true,                  -- If true only whitelisted jobs can get rewards
    Payment = "society",            -- "cash", "bank", or "society" // Society: (ESX: "society_mechanic")
    Reward = 25,                    -- 25$ for each tuning
}

Config.SocietyPaymentAccounts = {   -- Add as many society accounts as you want
    "society_mechanic",
    "society_bennys"
}

Config.SetBossmenu = false          -- QBCore (qb-management) or ESX (esx_society)
Config.Bossmenu = {                 -- You can add as many locations as you want // QBCore (qb-management) or ESX (esx_society)
    vector3(-206.89, -1341.71, 34.89),
    vector3(727.87, -1066.78, 28.31),
}

Config.Positions = {        -- You can add as many locations as you want, follow the guide below. Copy paste and fill the sections with your coordinates etc.
    {
        pos = vector3(732.07, -1088.55, 22.17),         -- vector3(732.07, -1088.55, 22.17) or xyz example: {x = 732.07, y = -1088.55, z = 22.17}
        whitelistJobName = {                            -- Add as many jobs as you want / Only whitelisted jobs can see "Upgrades"
            [1] = 'mechanic', 
            [2] = 'tuner', 
        },
        setWhitelist = false,                            -- If false then everyone can use tuning on this location
        enableUpgrade = true,                            -- If true then Upgrades will show up
        label = "LS Customs",
        blipsprite = 72,
        blipcolor = 5,
        blipscale = 0.6,
        blipdisplay = 4,
        showBlip = true,
    },
    {
        pos = vector3(-211.35, -1323.07, 30.89),        -- vector3(-211.35, -1323.07, 30.89) or xyz example: {x = -211.35, y = -1323.07, z = 30.89}
        whitelistJobName = {                            -- Add as many jobs as you want / Only whitelisted jobs can see "Upgrades"
            [1] = 'mechanic', 
            [2] = 'tuner', 
        },
        setWhitelist = false,                            -- If false then everyone can use tuning on this location
        enableUpgrade = true,                            -- If true then Upgrades will show up
        label = "Bennys Motorwork",
        blipsprite = 72,
        blipcolor = 3,
        blipscale = 0.6,
        blipdisplay = 4,
        showBlip = true,
    },
    --[[{ -- Example of copy and paste - Do not forget to change the "pos" coordinates 
        pos = {x = COORDS, y = COORDS, z = COORDS},
        whitelistJobName = {                            -- Add as many jobs as you want / Only whitelisted jobs can see "Upgrades"
            [1] = 'mechanic', 
            [2] = 'tuner', 
        },
        setWhitelist = true,                            -- If false then everyone can use tuning on this location
        enableUpgrade = true,                           -- If true then Upgrades will show up
        label = "Bennys Motorwork",                     -- Blip name
        blipsprite = 72,
        blipcolor = 3,
        blipscale = 0.6,
        blipdisplay = 4,
        showBlip = true,
    },]]
}

Config.Lang = {
    -- Action keys
    ["key_pressed"] = "Press ~INPUT_CONTEXT~ to enter customs",
    ["bossmenu_key_pressed"] = "Press ~INPUT_CONTEXT~ to open Bossmenu",
    ["drawtext"] = "[~y~E~w~] Enter customs",
    ["bossmenu_drawtext"] = "[~y~E~w~] Open Bossmenu",

    -- Notifys
    ["fixing_car"] = "Fixing the vehicle...",
    ["cleaning_car"] = "Cleaning the vehicle...",
    ["command"] = "Open mechanic menu",
    ["command_error"] = "You have no rights to do this",
    ["successful"] = "You have successfully modified the car!",

    -- Company/Society
    ["company_paid"] = "Company Paid ",
    ["employee_check"] = "Employee Paycheck",
    ["info"] = "The company got ~g~",
    ["info2"] = "$~w~ for each tuning. Well done!",
}
```

{% endtab %}
{% endtabs %}


---

# 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://theftdev.gitbook.io/theftdev/theftdev-scripts/resources/mechanic-tuning/configuration.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.
