Skip to content

Configuration ​

All gameplay settings are in config.lua. Restart the resource after any change.

General ​

OptionDefaultDescription
Config.Framework'auto'qbx, qb or auto.
Config.Target'auto'ox_target, qb-target or auto.
Config.Locale'en''en' or 'ar'.
Config.DebugfalsePrints debug output.
Config.MaxLevel24Highest gang level.
Config.Items.lab_tablet'lbtablet'Item that opens the laptop.

Mafia ​

Players with this gang or job see and manage every gang:

lua
Config.Mafia = {
    mafia = "maf",  -- gang name
    job   = "maf",  -- job name
}

Upgrades ​

Upgrades are bought with cash from the laptop and need a minimum gang level.

Lab floors ​

UpgradeLevelPriceUnlocks
Weed1$50,000Weed lab
Laundry3$150,000Second floor laundry
Meth Lab5$300,000Second floor meth lab

Weed ​

UpgradeLevelPriceEffect
9 More Pots2$100,00018 pots
9 More Pots3$150,00027 pots
9 More Pots4$200,00036 pots

Laundry ​

UpgradeLevelPriceEffect
Laundry 1.25×4$25,000+25% payout
Laundry 1.5×5$50,000+50% payout
Laundry 1.75×6$75,000+75% payout
Laundry 2.0×7$100,000+100% payout

Meth ​

UpgradeLevelPriceDaily meth bags
6 MethBags6$200,0006
9 MethBags7$400,0009
12 MethBags8$600,00012
15 MethBags9$800,00015

Edit prices, levels and effects in Config.Upgrades.

XP ​

XP per action, as { min, max }:

lua
Config.XP = {
    weedcollect  = { 5, 10 },
    Roll         = { 8, 20 },
    RaidWin      = { 50, 150 },
    RaidLose     = { 25, 50 },
    LaundryPrint = { 1, 2 },
    LaundryCut   = { 3, 4 },
    LaundryDry   = { 5, 6 },
    methbreak    = { 2, 5 },
    methpackage  = { 5, 10 },
}

Config.LevelXP sets the total XP needed for each level.

Weed ​

OptionDefaultDescription
WeedPlanting.growDuration7200Seconds until a plant is fully grown.
WeedPlanting.startWater / startFood25Starting water and nutrition.
WeedPlanting.waterAddAmount50Water added per watering.
WeedRolling.minigame.duration26000Rolling minigame time in ms.

Joint effects:

lua
Config.WeedJointEffects = {
    staminaDuration = 60000,
    items = {
        mg_kush_joint        = { effect = 'health' },
        mg_white_widow_joint = { effect = 'armor' },
        mg_black_venom_joint = { effect = 'stamina' },
    },
}

Laundry ​

Money paper costs $2,500 cash. The printer turns 100 money paper into 250 printed money, which is then cut and dried into money stacks (black_money). Settings are in Config.Laundry.

Lab ​

lua
Config.Lab = {
    ToggleCost     = 7500,  -- cost to open/close the lab
    ToggleCooldown = 20,
    StreamDistance = 500.0,
}

Config.Safe = {
    maxWeight = 250000,
    slots     = 40,
    label     = 'Lab Safe',
}

Raids ​

lua
Config.Raids = {
    RaidPrice           = 7500,  -- cost to start a raid
    CooldownAfterAttack = 15,    -- minutes
    ImmunityAfterLose   = 25,    -- minutes
    ImmunityAfterRaided = 20,    -- minutes
    RaidRadius          = 300.0,
    MinAttackers        = 0,
    MinDefenders        = 0,
    PlantRaidLimit      = 3,
}

Each raid goes through these phases (in minutes): keypad hack (15), power shutdown (1), laptop (10), code (5), restore (5) and countdown (5).

Market ​

Supplies ordered from the laptop are delivered to drop spots inside the lab after 10–20 minutes, and are paid with black_money.

lua
Config.Market = {
    PaymentItem = 'black_money',
    DeliveryMin = 10,
    DeliveryMax = 20,
    Items = {
        { id = 'mg_pot', item = 'mg_pot', price = 1000, count = 1, image = 'mg_pot.png' },
        -- ...
    },
}

Black Market ​

A player-to-player auction house in the laptop.

OptionDefaultDescription
EnabledtrueTurns the black market on.
ListingDurations1h, 3h, 6hDurations sellers can pick.
MaxListingsPerDay10Listings per player per day.
MaxActiveBids10Active bids per player.
MinBidStep500Minimum raise per bid.
AntiSnipeSeconds / AntiSnipeExtend30 / 60A late bid extends the auction.
MoneyType'cash'Money account used.
AllowWeaponstrueAllow listing weapons.
BlockedItemstablets, laptops…Items that can't be listed.

Discord logs ​

Webhooks are in the server-only file server.lua:

lua
ServerConfig = {
    Webhooks = {
        Default = '',
        raids = '',
        labs = '',
        gang = '',
        missions = '',
        mafia = '',
    },
    Discord = {
        Enabled = false,
        BotName = 'MG Dev',
    },
}

Set Enabled = true to turn logging on.

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