# Config

```lua
Config = {}

Config.Framework = "qb" -- Your framework ( qb or esx )
Config.Core = "qb-core" -- Your qb-core folder name 
Config.Target = "qb" -- "qb" or "ox"
Config.Notify = "ox" -- "qb" or "okok" or "ox" ( open code on config_functions.lua )
Config.VehicleKeys = "qb" -- "qb" or "qs" or "renewed" or "jaksam" ( open code on config_functions.lua )
Config.Inventory = "qb" -- "qb" or "ox" or "qs"
Config.InventoryPath = "qb-inventory/html/images/" -- Path to inventory images [qb-inventory/html/images/ or ox_inventory/web/images/]
Config.Fuel = "LegacyFuel" -- "LegacyFuel" or "okokFuel" or "ox_fuel" or "ti_fuel" or "qs-fuel" ( open code on config_functions.lua )
Config.Debug = true -- true or false ( if you want to see the debug messages in the console )
Config.Autodatabase = true -- true or false ( if you want to create the database automatically )

Config.NPC = {
    location = vector3(2356.58, 3136.83, 48.21), -- Location where you can start
    heading = 173.58, -- Heading of the NPC
    model = "a_m_m_prolhost_01", -- Model of the NPC
}

Config.Level = {
    [1] = { experience = 0 }, -- Level 1
    [2] = { experience = 250 }, -- Level 2
    [3] = { experience = 450 }, -- Level 3
    [4] = { experience = 650 }, -- Level 4
    [5] = { experience = 1000 }, -- Level 5
}

Config.SpawnPosition = { -- Position where the car will spawn
    location = vector3(2351.82, 3132.56, 48.21),
    heading = 79.93,
}

Config.CarRebuild = {
    [1] = { -- Level 1 cars available to re-build
        carsAvailable = {
            [1] = { car = "futo", label = "Futo", experience = { min = 5, max = 10 } },
            [2] = { car = "blista", label = "Blista", experience = { min = 5, max = 10 } },
            [3] = { car = "sultan", label = "Sultan", experience = { min = 5, max = 10 } },
        }
    },
    [2] = { -- Level 2 cars available to re-build
        carsAvailable = {
            [1] = { car = "futo", label = "Futo", experience = { min = 15, max = 25 } },
            [2] = { car = "blista", label = "Blista", experience = { min = 15, max = 25 } },
            [3] = { car = "sultan", label = "Sultan", experience = { min = 15, max = 25 } },
            [4] = { car = "kuruma", label = "Kuruma", experience = { min = 15, max = 25 } },
        }
    },
    [3] = { -- Level 3 cars available to re-build
        carsAvailable = {
            [1] = { car = "futo", label = "Futo", experience = { min = 30, max = 45 } },
            [2] = { car = "blista", label = "Blista", experience = { min = 30, max = 45 } },
            [3] = { car = "sultan", label = "Sultan", experience = { min = 30, max = 45 } },
            [4] = { car = "kuruma", label = "Kuruma", experience = { min = 30, max = 45 } },
            [5] = { car = "elegy", label = "Elegy", experience = { min = 30, max = 45 } },
        }
    },
    [4] = { -- Level 4 cars available to re-build
        carsAvailable = {
            [1] = { car = "futo", label = "Futo", experience = { min = 50, max = 65 } },
            [2] = { car = "blista", label = "Blista", experience = { min = 50, max = 65 } },
            [3] = { car = "sultan", label = "Sultan", experience = { min = 50, max = 65 } },
            [4] = { car = "kuruma", label = "Kuruma", experience = { min = 50, max = 65 } },
            [5] = { car = "elegy", label = "Elegy", experience = { min = 50, max = 65 } },
            [6] = { car = "jester", label = "Jester", experience = { min = 50, max = 65 } },
        }
    },
    [5] = { -- Level 5 cars available to re-build
        carsAvailable = {
            [1] = { car = "futo", label = "Futo", experience = { min = 65, max = 85 } },
            [2] = { car = "blista", label = "Blista", experience = { min = 65, max = 85 } },
            [3] = { car = "sultan", label = "Sultan", experience = { min = 65, max = 85 } },
            [4] = { car = "kuruma", label = "Kuruma", experience = { min = 65, max = 85 } },
            [5] = { car = "elegy", label = "Elegy", experience = { min = 65, max = 85 } },
            [6] = { car = "jester", label = "Jester", experience = { min = 65, max = 85 } },
            [7] = { car = "comet", label = "Comet", experience = { min = 65, max = 85 } },
        }
    },
}


-- Crafting car parts
Config.CraftingLocation = vector3(2351.39, 3117.93, 48.13) -- Location where you can craft the car parts
Config.CraftingCarParts = {
    [1] = {
        itemCode = "car-battery",
        itemLabel = "Car Battery",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "copper", amount = 1 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [2] = {
        itemCode = "car-door",
        itemLabel = "Car Door",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "metal", amount = 1 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [3] = {
        itemCode = "car-engine",
        itemLabel = "Car Engine",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "metal", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
            [3] = { item = "rubber", amount = 1 },
        }
    },
    [4] = {
        itemCode = "car-hood",
        itemLabel = "Car Hood",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "metal", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [5] = {
        itemCode = "car-suspension",
        itemLabel = "Car Suspension",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "metal", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [6] = {
        itemCode = "car-tire",
        itemLabel = "Car Tire",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "rubber", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [7] = {
        itemCode = "car-trunk",
        itemLabel = "Car Trunk",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "metal", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [8] = {
        itemCode = "car-windows",
        itemLabel = "Car Window",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "glass", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
        }
    }
}
```


---

# 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://mscripts.gitbook.io/docs/both-framework/scripts/car-rebuild/config.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.
