Skip to content

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:

FrameworkFile
Qboxsql/qbx.sql (same as install/install.sql)
QBCoresql/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/
ItemUse
lbtabletLabs Laptop. Opens the lab laptop.
mg_potPlant pot, placed in the weed lab.
mg_wateringcan, mg_waterbottleWatering can and refill bottle.
mg_weed_nutritionPlant fertilizer.
mg_kush_bud, mg_white_widow_bud, mg_black_venom_budHarvested buds.
weed_mg_kush, weed_mg_white_widow, weed_mg_black_venomPackaged weed.
mg_rolling_paperUsed to roll joints.
mg_kush_joint, mg_white_widow_joint, mg_black_venom_jointJoints (health, armor, stamina).
moneypaper, printedmoney, cutted_moneyLaundry steps.
black_moneyMoney stack. Also the Market's currency.
macid, cookedmeth, breakedmeth, packedmeth, methbagMeth 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-Gangslab

6. Place the first lab ​

  1. Make sure the gang exists in your framework.
  2. As an admin, go to where the lab should be and run /setuplab.
  3. Place the lab and assign it to the gang.
  4. Run /setdoors to create the lab doors in ox_doorlock.
  5. Give a gang member lbtablet and open it inside the lab.

All MG Development resources are protected. Redistribution is not permitted.