# Weed Lab

***

## 🌿 About

**X8-WeedlaP** is a gang-based weed lab system for FiveM, built for **QBCore** and **QBox**.

The script gives every gang their own underground lab where members can plant weed, grow it, harvest, clean it into bags or roll it into joints, raid rival labs, and launder dirty money — all managed through an in-game tablet.

***

### ✨ Features

* 🏚️ Gang-owned and upgradable labs
* 🌱 Realistic plant growth (water, fertilizer, decay)
* ✂️ 3-tier cleaning and joint rolling system
* 💵 Full money laundering chain
* 🚬 Special joints with armor effect
* ⚔️ Multi-phase lab raids
* 📈 24 levels with XP and Lab Coins
* 📡 Discord webhook logs
* 🌉 Universal Bridge — works with QB, QBX, and more

***

### 🛠️ Commands

### `/setuplab`

> Create a new cannabis lab in your current location.

* **Usage:** `/setuplab`

***

### `/addobj`

> Add a new item (prop) to the lab you are currently setting up.

* **Usage:** `/addobj`

***

### `/reloadlabs`

> Reload all lab settings and update items in the world without restarting the resource.

* **Usage:** `/reloadlabs`

***

### `/clearsetup`

> Cancel the current setup session and clear all unsaved lab data.

* **Usage:** `/clearsetup`

***

### `/delobjects`

> Delete all lab items created in the world (useful for cleaning up or debugging).

* **Usage:** `/delobjects`

***

### 📦 Requirements

* `qb-core` or `qbx_core`
* `oxmysql`
* `ox_lib`
* Any supported inventory (`ox_inventory` / `qb-inventory`)
* Any supported target (`ox_target` / `qb-target` / interact)
* `ox_doorlock`

**IMPORTANT – REQUIRED SETUP** • `[Dynamic Doors]` ↳ Add the following line to your **server.cfg** to ensure proper door functionality:

<mark style="color:$warning;">`setr game_enableDynamicDoorCreation true`</mark>


---

# 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://x8project.gitbook.io/x8project/projects/weed-lab.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.
