# 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.


---

# 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://mscripts.gitbook.io/docs/both-framework/scripts/drug-sell-creator.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.
