> For the complete documentation index, see [llms.txt](https://mscripts.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://mscripts.gitbook.io/docs/premium/scripts/drug-sell-creator.md).

# Drug Sell Creator

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

### Zone Management

* **Create custom drug selling zones** through intuitive menus (ox\_lib / lation\_ui).
* **Edit existing zones** including name, radius, allowed drugs, and gangs.
* **Delete zones** from the database easily.
* **Customizable blips** per zone (sprite, color).
* **Configurable cooldown timers** per zone to prevent abuse.

### Player Interaction

* **Sell drugs** to nearby NPCs dynamically.
* **Automatic proximity checks** before interaction.
* **Prevents repeated sales** to the same NPC.
* **Configurable chance of sale rejection** for realistic gameplay.
* **Smooth and immersive drug sale animations**.

### Sale Settings

* **Define allowed drugs** per zone.
* **Set minimum and maximum payment** per sale.
* **Limit maximum quantity per transaction**.
* **Adjustable chance of rejection** per zone.

### Gang Progression

* **Track gang experience (XP)** per sale.
* **Level up gangs automatically** based on accumulated XP.
* **Experience gain per sale configurable** (min/max).
* **Level-based bonuses** for sales (Config.LevelsBoost).

### Notifications & Alerts

* **Display notifications** upon entering a zone.
* **Optional police alerts** on rejected sales.
* **Notifications for gang level-ups**.

### Daily Missions

* **Create, edit, or delete daily drug missions** through a user-friendly menu.
* **Define mission objectives** such as drug type, quantity, and target amount.
* **Set mission rewards** including money and XP.
* **Configure mission duration** (24h / 48h / 72h)

### Exports

* `CreateNewDrugSellingZone` - Open the creation menu from another script.
* `GetDrugSellingZones` - Retrieve all configured zones.
* `AddGangExperience` - Add XP to a gang.
* `RemoveGangExperience` - Remove XP from a gang.
