# Configuration

```lua
return {
    debug = true,

    enableCommand = true,
    commandNames = { 'selldrugs', 'selldrug', 'trap' },
    commandHelp = 'Sell your current drugs for money',

    enableKeybind = false,
    keybindName = 'O',

    rejectChance = 30, -- % chance that an NPC will reject the transaction
    preventWeaponSelling = true, -- Prevents drug selling while holding a weapon

    police = {
        requiredAmount = 0,  -- Minimum number of online police required to sell
        jobs = { 'police' }, -- Jobs counted as police
        multiplier = {
            ['1'] = 1.0,
            ['2'] = 1.3,
            ['3'] = 1.4,
            ['4'] = 1.5
            --- ... and etc for any amount of cops
        }
    },
    ranks = {
        xpBasedOnAmount = true, -- If true, XP gained is based on drug amount sold
        levels = {
            --[[
                Rank Progression Settings

                Fields:
                - name        : (string) Internal rank identifier
                - label       : (string) Friendly name shown to players
                - color       : (string) Hex color for UI visuals
                - level       : (number) Numeric level in the rank progression
                - xpIncrease  : (number) XP added per transaction (unless overridden by xpBasedOnAmount)
                - rankXP      : (number) Required XP to reach this rank
                - multiplier  : (number) Earnings multiplier applied at this rank
            ]]
            { name = 'cornerboy', label = 'Cornerboy', color = '#FF0000', level = 1, xpIncrease = 1, rankXP = 2500, multiplier = 1.0 },
            { name = 'trapper', label = 'Trapper', color = '#00FF00', level = 2, xpIncrease = 1, rankXP = 5500, multiplier = 1.01 },
            { name = 'trapstar', label = 'Trapstar', color = '#0000FF', level = 3, xpIncrease = 1, rankXP = 14000, multiplier = 1.04 },
            { name = 'dopemover', label = 'Dope Mover', color = '#FF00FF', level = 4, xpIncrease = 1, rankXP = 20000, multiplier = 1.07 },
        }
    },
    drugs = {
        --[[
            Drug Configuration

            Fields:
            - price   : (number) Price per unit of the drug
            - max     : (number) Maximum quantity that can be sold in one transaction
            - account : (string) Account type where payment will be deposited (e.g., 'black_money')
        ]]
        ['coke'] = { price = 275, max = 10, account = 'black_money' },
    },
}
```


---

# 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://vanishdev.gitbook.io/vanishdev/gang-series/sell-drugs/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.
