๐ป Installation
Install devhub_lib
Download and install the required library and configure it according to your framework. Weed needs devhub_lib 3.0.7 or newer; an older one prints a warning in the server console on start.
Download https://github.com/DEVHUB-GG/devhub_lib or use command
git clone https://github.com/DEVHUB-GG/devhub_lib.gitInstall resources from keymaster
Download the WEED files from keymaster. The product ships two resources:
| Resource | What it is |
|---|---|
devhub_weed | The script itself. |
devhub_weed_assets | Every model the script uses: plants of every strain and growth stage, buds, pots, drying racks, packing props, grow lights and the warehouse hall. |
Both are required. The assets resource contains no code, only stream files.
Add the items to your inventory
The resource ships an items/ folder with one file per framework and an img/ folder with every item image. Use the one that matches your inventory:
| File | What to do with it |
|---|---|
items/qb/items.lua | qb-core: paste into qb-core/shared/items.lua. |
items/ox/items.lua | ox_inventory: paste into ox_inventory/data/items.lua. |
items/esx/items.sql | ESX without ox_inventory: run it on your database. |
Then copy every .png from items/img/ into your inventory's image folder (for example qb-inventory/html/images or ox_inventory/web/images).
There are 78 items, all starting with devhub_weed_: pots, soils, fertilizers, water, the rescue spray, seeds, wet and dried buds, pollen, joints, bags and bricks of every strain, the packing kits, the catalyst, the drying rack and the packing table. The full list is on strains-and-items.md.
An item that does not exist in your inventory can never be bought, picked or used. If a player buys something in the shop and nothing arrives, the item is missing from your inventory.
Database
You do not have to do anything here. The script creates its own tables the first time it starts.
If your database user is not allowed to create tables, set Config.AutoCreateSQL = false in server.lua and import sql.sql yourself. Every table uses CREATE TABLE IF NOT EXISTS, so running it twice changes nothing.
Start resources
Move the files to the resources folder on your server and add the following lines to your server.cfg in the correct order:
ensure devhub_lib
ensure devhub_weed_assets
ensure devhub_weedIf you also run devhub_skillTree, start it before devhub_weed.
Restart your server
Open the admin panel in game
Log in as an admin and type /weedadmin, or open /admindevhub and pick Weed.
The default setup already works: the Weed Tools shop, the seed dealer, the wild bushes and the warehouse doors are placed on the map. Everything you want to change from here on is done in the panel. See admin-panel.
DO NOT CHANGE RESOURCE NAME
Who can open the admin panel
/weedadmin, /weedzones and /warehouseslots are gated by the ACE permission command, the same one the DevHub library uses everywhere. Give it to your admin group in server.cfg:
add_ace group.admin command allow
add_principal identifier.license:YOUR_LICENSE group.adminA player without that permission cannot open the panel, and the server rejects every admin action even if the interface is forced open.
Optional: the skill tree
With devhub_skillTree installed, players earn Weed XP for every step of the chain and unlock perks such as extra buds, faster drying and the mutation strains. It is switched on in shared.lua and the tree itself is in skillTree.lua.
Devhub Lib Needed For Each Script Download Purchased Assets