> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/multi-framework/ak47_drugmanagerv3.md).

# ak47\_drugmanagerv3

{% embed url="<https://youtu.be/8UtFqq5HKzo>" %}

### 🔥 Key Features

Designed to improve roleplay immersion and economy balancing:

#### 🖥️ In-Game Studio & Real-Time Management

* **Live In-Game Creator:** Built-in modern React HUD UI studio (`/drugmanager`) allows server administrators to create, position, edit, and delete drug harvest fields, processing labs, collection zones, NPC selling zones, corner boys, shops, custom usable effects, handcraft recipes, and props without ever restarting the resource or editing config files.
* **Interactive Prop Placer:** Place, rotate, and align laboratory tables, field plants, chemistry sets, and props directly in the world with precision controls.

#### 🌿 Dynamic Drug Fields & Lab Processing

* **Interactive Harvest Fields:** Place custom harvestable crops (Coca plants, Weed bushes, Opium poppy flowers, Psilocybin mushrooms, Ergot, etc.) with custom respawn times, radius limits, and harvest animations.
* **Specialized Lab Minigames:** Advanced processing stations with specialized minigames (`packaging`, `chemical`, `injection`, `brewing`) simulating chemical synthesis, brick pressing, and pouch packaging.
* **Hazard System:** Configurable lab hazard chances including catastrophic chemical explosions, fires, and player damage upon minigame failure.

#### 🤖 Autonomous Corner Boys & Street Dealing

* **NPC Corner Boys:** Deploy autonomous NPC dealers anywhere on map corners. Players can supply inventory, set custom prices, and collect passive earnings over time.
* **Street Corner Dealing:** Immersive NPC wander/corner selling system (`/startsell` & `/stopsell`) with customer ped negotiation, rejection chances, robbery attempts, and police dispatch triggers.
* **Flexible Currencies:** Configure payouts in Cash, Bank, Black Money, or Marked Bills (with metadata dollar worth support).

#### 💊 In-Depth Consumption & Visual Effects

* **Multiple Consumption Methods:** Ingest narcotics through joint/spliff smoking, bongs with realistic sound effects, syringes/shots, nasal rails, double-cup lean drinking, or swallowing pills/tabs.
* **Dynamic Screen Shaders:** Realistic GTA timecycle modifier shaders (Dax Acid Trip, Stoned Aliens, Barry Smoked Haze, Trevor Rage Redmist, Deadman Overdose, Night/Thermal vision) with motion blur, screen shake, and custom walk styles.
* **Impaired Vehicle Handling:** Simulates driving under the influence with steering drift, random forces, and loss of wheel grip.

#### 🧬 Addiction, Tolerance & Medical Detox

* **Addiction & Tolerance Tracking:** Player usage builds up drug-specific tolerance and addiction levels saved securely to the database.
* **Withdrawal Symptoms:** High addiction triggers withdrawal consequences including vomiting, sudden passouts, screen shaking, and gradual health loss.
* **Medical Detox & Antidotes:** Players can treat addictions using specialized pharmaceutical meds (Acamprosate, Lofexidine) or revive overdosing players with antidote shots.
* **Police Drug Test Kit:** Law enforcement can use interactive field drug test kits to detect active narcotics in suspects' bloodstreams.

#### 🛠️ Technical Excellence & Integrations

* **Multi-Framework Support:** Seamless out-of-the-box compatibility with ESX, QBCore, and Qbox powered by `ak47_lib`.
* **12+ Dispatch Integrations:** Automatic support for `qs-dispatch`, `ps-dispatch`, `cd_dispatch`, `core_dispatch`, `rcore_dispatch`, `op-dispatch`, `aty_dispatch`, `origen_police`, `tgiann-dispatch`, `tk_dispatch`, `wf-alerts`, `lb-phone`, and standalone alerts.
* **Target & Inventory Integration:** Fully integrated with `ox_target`, `qb-target`, `qtarget`, `ox_inventory`, `qb-inventory`, `qs-inventory`, and more.
* **Highly Secure & Optimized:** Server-side exploit prevention, distance validation, anti-trigger abuse, and standalone automated V2-to-V3 database migration (`/migratedrugsv2`).

***

### 💻 Framework:

* ESX, QB, QBX

***

### ⚙️ Dependencies:

* ak47\_lib: <https://github.com/MenanAk47/ak47\\_lib/releases/latest>

***

### ⚙️ How To Install:

* Download `ak47_drugmanagerv3` from your cfx portal.
* Add the script in your resources folder.
* Import database.sql into your database (or run /migratedrugsv2 if upgrading from V2).
* Add items based on your framework instruction.
* Add item images into inventory.
* Start the script in your `server.cfg` below framework files and ak47\_lib.
* Make sure you have all dependencies.
* Restart the server.

***

### 🔗 Links & Support:

* **🛒 Buy Now (Tebex):** <https://menanak47.tebex.io/package/7644695>
* **💬 Discord Support:** <https://discord.gg/menanak47>

***

### 📝 Note:

* We don't support custom framework. Make sure you are using official framework update.
* Renaming the script is not allowed. It may break the functionalities.
* Don't upload the script with FileZilla, Use Winscp if you are using FTP for file uploading
