# Config

```lua
Config = {}

Config.Core = "qb-core" -- Your qb-core folder name
Config.Notify = "qb" -- "qb" or "okok" or "ox" ( open code on config_functions.lua )
Config.Target = "qb" -- "qb" or "ox"
Config.Inventory = "qb" -- "qb" or "ox" or "qs"
Config.WeaponsSerial = true -- If true, the weapons buyed receive a serial number

Config.Restrict = {
    enable = false, -- Enable acess to restrict jobs or gangs?
    category = "jobs", -- "jobs" or "gangs"
    list = { -- List jobs or gangs can acess it
        "police",
        "lspd"
    }
}

Config.LuxuCEX = { -- https://fivem.luxu.gg/package/5225579
    enabled = false, -- Enable LuxuCEX?
    crypto = 'BTC' -- Crypto
}

Config.Payments = {
    type = "cash", -- "cash" or "bank" or "blackmoney" | Valid only Config.Inventory == "qb"
    item = "cash", -- "cash" or "money" or "markedbills"
    metadata = true, -- If your blackmoney have metadata ( qb-inventory | worth value )
}

Config.Experience = {
    General = { min = 2, max = 10 }, -- Amount experience player earn after buy general items
    Guns = { min = 12, max = 25 }, -- Amount experience player earn after buy weaopns
}

Config.BlackmarketLocations = { -- Possible locations where ped can sapwn
    [1] = { coords = vector3(1744.07, -1623.1, 112.62), heading = 101.40, pedModel = "s_m_m_fiboffice_01"},
    --[2] = { coords = vector3(1737.72, -1624.94, 112.42), heading = 101.40, pedModel = "s_m_m_fiboffice_01"},
    -- You can add un-limited zones, and every restart he spawn in different locations
}

-- Commands Options
Config.Commands = {
    newItem = {
        command = "bmaddnewitem", -- Command to add a new item to the blackmarket
        description = "Add a new item to blackmarket", -- Description of the command
        permissions = "admin", -- Permissions needed to use the command
    },
    removeItem = {
        command = "bmremoveitem", -- Command to remove an item from the blackmarket
        description = "Remove an item from blackmarket", -- Description of the command
        permissions = "admin", -- Permissions needed to use the command
    },
    checkItem = {
        command = "bmcheckitem", -- Command to check items/restock on the blackmarket
        description = "Check an item on blackmarket", -- Description of the command
        permissions = "admin", -- Permissions needed to use the command
    },
    giveExperience = {
        command = "bmgiveexperience", -- Command to give experience to a player
        description = "Give experience to a player", -- Description of the command
        permissions = "admin", -- Permissions needed to use the command
    },
    removeExperience = {
        command = "bmremoveexperience", -- Command to remove experience from a player
        description = "Remove experience from a player", -- Description of the command
        permissions = "admin", -- Permissions needed to use the command
    }
}
```


---

# 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/qbcore/illegal/qb-blackmarket/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.
