> For the complete documentation index, see [llms.txt](https://bytexcripts.gitbook.io/bytexcripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bytexcripts.gitbook.io/bytexcripts-docs/sell-drugs/settings.md).

# Settings

<div align="left"><figure><img src="/files/J7SUjkB12hweOAOOzX39" alt="" width="18"><figcaption></figcaption></figure></div>

Puedes agregar diferentes peds a la blacklist, esto hará que no se pueda vender a esos NPCs cuando te los ecuentres caminando. También podrás añadir más drogas o cambiarlas por las que tengas en su servidor.

<div align="left"><figure><img src="/files/bVJIxvEgfTGJYhZYQjJN" alt="" width="18"><figcaption></figcaption></figure></div>

You can add different peds to the blacklist, this will make it so that you can't sell to those NPCs when you walk past them. You can also add more drugs or exchange them for the ones you have on their server.

{% code title="config.lua" overflow="wrap" lineNumbers="true" %}

```lua
GLOBALS = {
    framework = 'qb-core', -- Compatible with -> qb-core and esx.
    target = 'qb-target', -- Compatible with -> ox_target, qtarget and qb-target.
    notifications = 'qb-core', -- Compatible with -> qb-core, esx and custom.
    inventory = 'qb-inventory', -- Compatible with -> qb-inventory, esx, ox_inventory and custom.
    progressbar = 'progressbar', -- Compatible with -> progressbar (qb-core) and progresscircle (ox_lib).
    moneyHasItem = false, -- If you have the item has money let it in true, if not put it in false.
    RequiredCops = 0, -- That value corresponds to the minimum amount of police to be able to sell drugs.
    FailProbability = 3, -- That value corresponds to the probability of failing the attempt of selling.
    progressbarDuration = 5000, -- Is the duration of the progressbar in ms. (default -> 5000ms = 5s)).
    callPoliceAnimDict = 'cellphone@', -- Animation dictionary for when the NPC calls the police.
    callPoliceAnimName = 'cellphone_call_listen_base', -- Animation name for when the NPC calls the police.
    usePhonePropToCall = true, -- If you want the NPC to use a phone prop while calling the police, set it to true. Otherwise, set it to false.
    phoneProp = 'prop_npc_phone_02', -- Name of the phone prop.
    giveDrugsAnimDict = 'mp_common', -- Animation dictionary for when you give drugs to the NPC.
    giveDrugsAnimName = 'givetake1_a', -- Animation name for when you give drugs to the NPC.
    offeringDrugsAnimDict = 'missfbi1ig_1_alt_1', -- Animation dictionary for when you are offering drugs to the NPC.
    offeringDrugsAnimName = 'conversation1_peda', -- Animation name for when you are offering drugs to the NPC.
}

TRANSLATIONS = {
    ["sellLost"] = '¡Has perdido la venta!', -- This value corresponds for when you lost the sell.
    ["cantSellToDeadPed"] = 'No le puedes vender a un muerto...', -- This value corresponds for when you try to sell to a dead NPC.
    ["toFarToSell"] = 'Estás demasiado lejos, esta persona no te escucha.', -- This value corresponds for when you try to sell to a NPC that is far from you.
    ["tryToSellTheSamePed"] = 'Ya le has intentado vender a esta persona.', -- This value corresponds for when you try to sell to the same NPC.
    ["maybeCallingPolice"] = 'Quizás deberías pirarte de la zona, parece que esta persona está llamando a la policia...', -- This value corresponds for when the NPC calls the police.
    ["dontLikeTheShit"] = 'A esta persona no le gusta tu mierda', -- This value corresponds for when the NPC dont like what are you offering.
    ["nothingToSell"] = 'No tienes nada que ofrecerle.', -- This value corresponds for when you don't have nothing to offer.
    ["drugSold"] = 'Has vendido %d bolsitas de %s por $%d', -- This value corresponds for when you sell drugs.
    ["noDrugStock"] = 'No tienes esa cantidad para venderle.', -- This value corresponds for when you don't have the quantity that the NPC wants.
    ["sellingDrugs"] = 'Ofreciendo drogas', -- This value corresponds for the text displayed in the progressbar.
    ["noPolice"] = 'A esta persona no le gusta tu mierda', -- This value corresponds for when is not police in the server.
}

BLACKLIST = {
    Peds = {
        "a_m_y_business_02",
    }
}

ITEMS = {
    marihuana = {
        name = 'marihuana',
        item = 'weed_bag',
        low_price = 90,
        high_price = 110,
        low_count = 1,
        high_count = 3
    },
    meta = {
        name = 'meta',
        item = 'meta_bag',
        low_price = 120,
        high_price = 130,
        low_count = 1,
        high_count = 3
    },
    cocaina = {
        name = 'cocaine',
        item = 'cocaine_bag',
        low_price = 140,
        high_price = 150,
        low_count = 1,
        high_count = 3
    }
}
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://bytexcripts.gitbook.io/bytexcripts-docs/sell-drugs/settings.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.
