Installation
1. Add the resource
Copy the folder into your resources directory. Keep it named exactly MG-Gangslab. The item exports depend on that name.
2. Import the database
Import one file that matches your framework:
| Framework | File |
|---|---|
| Qbox | sql/qbx.sql (same as install/install.sql) |
| QBCore | sql/qbcore.sql |
It creates the lab, weed, missions, gang chat and black market tables, and the default lab furniture.
3. Add the items
The full item list for both inventories is in install/README.md. Copy the PNG files from install/images/ into your inventory's image folder:
- ox_inventory:
ox_inventory/web/images/ - qb-inventory:
qb-inventory/html/images/
| Item | Use |
|---|---|
lbtablet | Labs Laptop. Opens the lab laptop. |
mg_pot | Plant pot, placed in the weed lab. |
mg_wateringcan, mg_waterbottle | Watering can and refill bottle. |
mg_weed_nutrition | Plant fertilizer. |
mg_kush_bud, mg_white_widow_bud, mg_black_venom_bud | Harvested buds. |
weed_mg_kush, weed_mg_white_widow, weed_mg_black_venom | Packaged weed. |
mg_rolling_paper | Used to roll joints. |
mg_kush_joint, mg_white_widow_joint, mg_black_venom_joint | Joints (health, armor, stamina). |
moneypaper, printedmoney, cutted_money | Laundry steps. |
black_money | Money stack. Also the Market's currency. |
macid, cookedmeth, breakedmeth, packedmeth, methbag | Meth steps. |
ox_inventory
Items with client.export = 'MG-Gangslab.UseItem' must keep consume = 0. The script removes them itself when the action finishes. Keep watering cans unstacked.
4. Set admins
Open server.lua and add your staff's Discord IDs:
lua
Config.Admins = {
'discord:123456789012345678',
}Only these players can use the admin commands.
5. Start order
ini
ensure oxmysql
ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure ox_target
ensure ox_doorlock
ensure MG-Gangslab6. Place the first lab
- Make sure the gang exists in your framework.
- As an admin, go to where the lab should be and run
/setuplab. - Place the lab and assign it to the gang.
- Run
/setdoorsto create the lab doors inox_doorlock. - Give a gang member
lbtabletand open it inside the lab.
