Distribution
Configuration
Bridge settings are in config.lua. The whole wholesale economy is in config_distribution.lua under Config.Distribution (shortened to D).
config.lua
config.lua
Config.HostResource = 'dh_urbansupply' -- owns market.html + drug prices
-- mirror your Urban Supply values
Config.SharedObjectName = 'esx:getSharedObject'
Config.Inventory = 'ox' -- 'ox' | 'qb' | 'custom'
Config.Notify = 'wasabi' -- 'esx' | 'qb' | 'ox' | 'wasabi' | 'custom'
Config.Dispatch = 'dh_mdt' -- 'cd_dispatch' | 'rcore_dispatch' | 'wasabi' | 'aty_dispatch'
-- | 'ak4y_dispatch' | 'dh_mdt' | 'custom' | 'none'
Config.DispatchJobs = { 'police' }
Config.DirtyMoneyAccount = 'black_money' -- where crate payouts land
Config.HeatHigh = 1000 -- used for sting chance + dispatch priority
General
| Key | Default | Description |
|---|---|---|
| D.Enabled | true | Master switch |
| D.Debug | true | Enables the test commands. Set false for production |
| D.CrateWeight | 500 | Weight of every crate (grams) |
| D.PackTime | 8000 | ms to pack one crate |
| D.HandoffTime | 6000 | ms at the buyer before payout |
| D.UseStreetMarket | true | Crate prices follow the weekly Urban Supply market |
| D.Variance | 0.06 | ±6% random swing at handoff |
Ranks
Each rank sets which crate tiers you can pack, the share of street value you get, the cooldown between drops, the daily rank cap, and whether you can use a portable table.
config_distribution.lua
D.Ranks = {
{ name = "Package Boy", threshold = 0, maxTier = 1, discount = 0.55, cooldown = 90, dailyCap = 150000, portable = false },
-- ...
{ name = "Drug Lord", threshold = 25000000, maxTier = 4, discount = 0.90, cooldown = 45, dailyCap = 3000000, portable = true },
}
| Field | Description |
|---|---|
| threshold | Total dirty value moved to reach this rank |
| maxTier | Highest crate tier this rank can pack |
| discount | Share of street value paid (keep below 1.0 so wholesale pays less per unit than corners) |
| cooldown | Seconds between drops |
| dailyCap | Max value per day that counts toward rank. Money still pays past it |
| portable | Can buy and place a personal packing table |
Tier 5 crates are in the config, but no rank has
maxTier = 5, so nobody can pack them yet. Raise the top rank's maxTier to 5 if you want them in play.Buyers
config_distribution.lua
D.Buyers = {
{ id = "corner_store", name = "The Corner Store", minRank = 1, payoutMod = 1.00, ped = "a_m_m_business_01", coords = vector4(515.41, 174.44, 99.55, 248.69) },
{ id = "middleman", name = "The Middleman", minRank = 3, payoutMod = 1.05, ped = "a_m_y_business_01", coords = vector4(1180.82, -394.82, 66.88, 260.13) },
{ id = "broker", name = "The Broker", minRank = 5, payoutMod = 1.10, ped = "a_m_m_eastsa_02", coords = vector4(450.78, -711.97, 26.23, 267.29) },
{ id = "connect", name = "The Connect", minRank = 7, payoutMod = 1.15, ped = "g_m_m_chiboss_01", coords = vector4(277.42, 347.81, 104.38, 125.91) },
{ id = "syndicate", name = "The Syndicate", minRank = 10, payoutMod = 1.25, ped = "g_m_m_chiboss_01", coords = vector4(-164.07, -138.24, 93.57, 75.97) },
}
Crates
The key must match the item name in ox_inventory. contents uses item names from Urban Supply's Config.DrugList. stingWeight scales the sting chance (bigger crate, bigger risk).
config_distribution.lua
D.Crates = {
block_package = { label = "Block Package", tier = 1, stingWeight = 1.0, contents = { weed_pouch = 100 } },
dealer_restock = { label = "Dealer Restock", tier = 2, stingWeight = 1.8, contents = { liquid_haze = 200, meth_shot = 200 } },
multi_crew = { label = "Multi-Crew Supply", tier = 3, stingWeight = 3.4,
contents = { trap_juice = 300, white_gold = 300, razzies = 300, bathsalts = 300 } },
kingpin_shipment = { label = "Kingpin Shipment", tier = 4, stingWeight = 10.0,
contents = { purple_dream = 500, fetty_bricks = 500, zittlez = 500, hood_chips = 500, night_bites = 500, black_dahlia = 500 } },
}
Order board
config_distribution.lua
D.Orders = {
enabled = true,
refresh = "daily", -- "daily" | "weekly" (Sunday 12:00 EST, like the street market)
activeCount = 3, -- open orders at once
premiumMin = 1.15, -- bonus range on a matching crate
premiumMax = 1.45,
tierWeights = { [1] = 4, [2] = 3, [3] = 2, [4] = 1 },
}
Stings
Chance = baseChance × crate.stingWeight × heat bonus, clamped between minChance and maxChance.
config_distribution.lua
D.Sting = {
enabled = true,
baseChance = 1.5, -- % before weighting
heatFactor = 0.0015, -- × zone heat
minChance = 0.0,
maxChance = 35.0,
fleeWindow = 25000, -- ms to clear the area
heatOnHandoff = 3, -- heat added to the buyer's zone per drop
seizePartial = true, -- true = lose a cut when busted, false = lose the crate
seizeCut = 0.5,
panicCut = 0.15, -- payout cut if you escape mid-sting
}
Packing spots & portable table
config_distribution.lua
D.Crafting = {
locations = {
{ label = "Packing Spot · Cypress Flats", coords = vector3(142.37, -2204.24, 3.56), prop = "prop_boxpile_07d" },
{ label = "Packing Spot · Elysian", coords = vector3(-168.22, 6167.39, 30.08), prop = "prop_boxpile_07d" },
},
Portable = {
item = "packing_table",
prop = "gr_prop_gr_bench_04a",
despawnOnLeave = true,
Vendor = {
enabled = true,
ped = "g_m_m_chiboss_01",
coords = vector4(-162.99, -135.15, 93.57, 67.3),
label = "Equipment Plug",
price = 75000,
account = "money", -- "money" | "bank" | D.DirtyAccount
minRank = 7, -- matches the portable unlock
blip = { enabled = false, sprite = 478, color = 5, scale = 0.8, name = "Equipment Plug" },
},
},
}