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

# nn\_drugsale

#### General information before installing <a href="#general-information-before-installing" id="general-information-before-installing"></a>

Welcome to the installation guide for the **nn\_drugsale** script! This guide will walk you through the complete installation process to ensure a smooth and problem-free setup. Please follow each step carefully for a seamless experience.

#### Common questions <a href="#common-questions" id="common-questions"></a>

<details>

<summary>How do I add a new drug to the script?</summary>

Add a new entry to `Config.Drugs` in `config.lua` with your desired properties. Example:

```lua
Config.Drugs['ecstasy'] = {
    label = "Ecstasy",
    image = "ecstasy.png",
    basePrice = 120,
    minPrice = 100,
    maxPrice = 180,
    amount = 8,
    minAmount = 2,
    maxAmount = 15,
    category = "pills",
    rarity = "rare",
    animation = {
        dict = "mp_player_inteat@burger",
        name = "mp_player_int_eat_burger",
        duration = 5000,
        scenario = "WORLD_HUMAN_AA_SMOKE"
    }
}
```

</details>

<details>

<summary>How do I change the minimum number of police required to sell drugs?</summary>

Edit the value of `Config.MinPolice` in `config.lua`:

```lua
Config.MinPolice = 2
```

</details>

<details>

<summary>How do I enable or disable specific phone apps?</summary>

Set the relevant app to `true` or `false` in `Config.PhoneApps`:

```lua
Config.PhoneApps.gamesApp = false -- Disables the games app
```

</details>
