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

# Drug Dealer App

{% hint style="info" %}
💬 **Need help?** Support, updates and changelogs are on the [**Mic Scripts Discord**](https://discord.gg/86FPzAV73B). Open a ticket with your Tebex transaction ID and the console error.
{% endhint %}

<a href="https://discord.gg/86FPzAV73B" class="button primary">💬 Join the Discord</a> <a href="https://mic.tebex.io/" class="button secondary">🛒 Get it on Tebex</a>

{% embed url="<https://www.youtube.com/watch?v=ArcLXbx6CFg>" %}

## What is mic\_drugdealer?

**mic\_drugdealer** is an app for **lb-phone** that turns drug selling into a run. A player picks a drug on their phone, gets a buyer's door marked on the map with a timer running, drives there, knocks, and either hands over the goods or gets turned away.

Every sale counts towards a dealer level, and every level pays better and unlocks harder drugs. Police decide how worthwhile it is: too few on duty and nobody buys, more of them online and prices climb — and some sales get reported straight to their phones.

<figure><img src="https://2570746828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Moy9Zesg1jsvvHNJmRG%2Fuploads%2FyJZVdmUTkRRhLvKSqSyz%2Fminiatura.png?alt=media&amp;token=31252f0a-b9d0-4499-b037-b326672b9ce2" alt=""><figcaption></figcaption></figure>

### Key features

* **A phone app, not a menu**\
  Installed from lb-phone's App Store (or pre-installed if you prefer), with a drug list, a deal screen with a countdown, and a dealer profile.
* **Twelve drugs out of the box**\
  Weed, coke, LSD, meth, mushrooms, opium, crack, heroin, ecstasy, oxycontin, lean and hash, each with its own price, amount range, selling zones and minimum level. Add or remove as many as you like.
* **Five selling zones**\
  Grove, the pier and beach, the Vinewood hills, Sandy Shores and Paleto Bay, each with its own buyers' doors and ped models.
* **Ten dealer levels**\
  From Newbie to Legend, each with the number of sales it takes and the bonus it pays.
* **Police make it risky**\
  A minimum number of officers online before anyone buys, prices that rise with the number of officers, and a chance on every sale that police get a phone notification and a blip.
* **Not every door opens**\
  A configurable chance that the buyer turns the player away after they knock.
* **Jobs that cannot see it**\
  Police, sheriff, EMS and mechanics do not get the app by default, and it updates when a job changes.
* **Dirty money or clean**\
  Pay in black money or cash, as an inventory item or an account.
* **Nine languages**\
  English, Spanish, French, German, Italian, Portuguese, Polish, Russian and Turkish.

### What you need

|               |                                                                                   |
| ------------- | --------------------------------------------------------------------------------- |
| **Phone**     | **lb-phone**, started before this resource                                        |
| **Framework** | ESX (`es_extended`), QBCore (`qb-core`) or QBox (`qbx_core`), set in `config.lua` |
| **Database**  | None — progress is saved in `player_data.json` inside the resource                |
| **Items**     | The drug items you want to sell, defined in your own inventory                    |

### Where to go next

| Page                                                                        | What is in it                                                         |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [🪛 Installation](/mic/documentation/drug-dealer-app/installation.md)       | Folder, start order, framework, items, and the first sale             |
| [🎨 Customization](/mic/documentation/drug-dealer-app/customization.md)     | Drugs, zones, levels, police, money, the App Store listing, languages |
| [🩺 Troubleshooting](/mic/documentation/drug-dealer-app/troubleshooting.md) | The app is missing, nobody buys, the money went somewhere else        |
