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

# Installation

## Download <a href="#download" id="download"></a>

To find and use the assets, you must have made the purchase from your own keymaster which you have your server key in. Otherwise you will not be able to use the asset.Once you make the purchase, you'll be able to access it from your [keymaster](https://keymaster.fivem.net/asset-grants). If you have more issues regarding [FiveM Escrow](https://forum.cfx.re/t/introducing-asset-escrow-for-your-resources/4777151), accounts or asset startup errors you can go here and see if any of them match your case, since Escrow requires some basics. Such as your keymaster account, your license key, etc.

***

## Dependencies <a href="#dependencies" id="dependencies"></a>

This assets has depencies such as frameworks like QBCore and ESX also MySQL connections. You can only use this script with qb-core or es\_extended based servers.

#### MySQL <a href="#mysql" id="mysql"></a>

This asset needs MySQL connections so you need to have one of these resuources:

* oxmysql
* mysql\_async
* ghmattimysql

***

## Ensuring <a href="#ensuring" id="ensuring"></a>

To ensure and use this script in your server, simply add this code in your `server.cfg` file, under your MySQL and framework scripts.

```
ensure aty_weed
```

***

### 🛠 Installation

#### 1. Database Setup

Import the included `data.sql` file into your database.

#### 2. Dependency Check

Ensure you have the following resources started **before** `aty_weed`:

* `ox_lib`
* `PolyZone`
* `ox_inventory` (Highly Recommended)

#### 3. Inventory Setup (ox\_inventory)

Add the following items to your `ox_inventory/data/items.lua`:

```lua
['weed_seed_sativa'] = { label = 'Sativa Seed', weight = 10, stack = true, close = true },
['weed_seed_indica'] = { label = 'Indica Seed', weight = 10, stack = true, close = true },
['weed_seed_skunk'] = { label = 'Skunk Seed', weight = 10, stack = true, close = true },
['weed_seed_haze'] = { label = 'Haze Seed', weight = 10, stack = true, close = true },
['weed_seed_hybrid'] = { label = 'Hybrid Seed', weight = 10, stack = true, close = true },
['uv_lamp'] = { label = 'UV Lamp', weight = 500, stack = true, close = true },
['heater'] = { label = 'Electric Heater', weight = 500, stack = true, close = true },
['drying_rack'] = { label = 'Drying Rack', weight = 1000, stack = true, close = true },
['wet_weed_low'] = { label = 'Wet Low Quality Weed', weight = 20, stack = true, close = true },
-- Add other qualities (medium, high, premium) similarly...
```

#### 4. Image Setup

Place the icons from the `icons/` folder into your inventory's image directory (e.g., `ox_inventory/web/images/`).
