Configuration
All gameplay settings are in config.lua. Restart the resource after any change.
General
| Option | Default | Description |
|---|---|---|
Config.Framework | 'auto' | qbx, qb or auto. |
Config.Target | 'auto' | ox_target, qb-target or auto. |
Config.Locale | 'en' | 'en' or 'ar'. |
Config.Debug | false | Prints debug output. |
Config.MaxLevel | 24 | Highest gang level. |
Config.Items.lab_tablet | 'lbtablet' | Item that opens the laptop. |
Mafia
Players with this gang or job see and manage every gang:
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
| Upgrade | Level | Price | Unlocks |
|---|---|---|---|
| Weed | 1 | $50,000 | Weed lab |
| Laundry | 3 | $150,000 | Second floor laundry |
| Meth Lab | 5 | $300,000 | Second floor meth lab |
Weed
| Upgrade | Level | Price | Effect |
|---|---|---|---|
| 9 More Pots | 2 | $100,000 | 18 pots |
| 9 More Pots | 3 | $150,000 | 27 pots |
| 9 More Pots | 4 | $200,000 | 36 pots |
Laundry
| Upgrade | Level | Price | Effect |
|---|---|---|---|
| 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
| Upgrade | Level | Price | Daily meth bags |
|---|---|---|---|
| 6 MethBags | 6 | $200,000 | 6 |
| 9 MethBags | 7 | $400,000 | 9 |
| 12 MethBags | 8 | $600,000 | 12 |
| 15 MethBags | 9 | $800,000 | 15 |
Edit prices, levels and effects in Config.Upgrades.
XP
XP per action, as { min, max }:
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
| Option | Default | Description |
|---|---|---|
WeedPlanting.growDuration | 7200 | Seconds until a plant is fully grown. |
WeedPlanting.startWater / startFood | 25 | Starting water and nutrition. |
WeedPlanting.waterAddAmount | 50 | Water added per watering. |
WeedRolling.minigame.duration | 26000 | Rolling minigame time in ms. |
Joint effects:
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
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
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.
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.
| Option | Default | Description |
|---|---|---|
Enabled | true | Turns the black market on. |
ListingDurations | 1h, 3h, 6h | Durations sellers can pick. |
MaxListingsPerDay | 10 | Listings per player per day. |
MaxActiveBids | 10 | Active bids per player. |
MinBidStep | 500 | Minimum raise per bid. |
AntiSnipeSeconds / AntiSnipeExtend | 30 / 60 | A late bid extends the auction. |
MoneyType | 'cash' | Money account used. |
AllowWeapons | true | Allow listing weapons. |
BlockedItems | tablets, laptops… | Items that can't be listed. |
Discord logs
Webhooks are in the server-only file server.lua:
ServerConfig = {
Webhooks = {
Default = '',
raids = '',
labs = '',
gang = '',
missions = '',
mafia = '',
},
Discord = {
Enabled = false,
BotName = 'MG Dev',
},
}Set Enabled = true to turn logging on.
