Lua preview
-- Generated loot table (QBCore / ESX compatible)
-- Drop in as Config.LootTable and reference by item key.
Config = Config or {}
Config.LootTable = {
{
item = "burner_phone",
label = "Burner Phone",
category = "tech",
rarity = "common",
weight = 466,
chance = 46.6, -- %
minQty = 1,
maxQty = 2,
value = { min = 110, max = 288 },
},
{
item = "pipe_bomb",
label = "Pipe Bomb",
category = "weapon",
rarity = "uncommon",
weight = 134,
chance = 13.4, -- %
minQty = 1,
maxQty = 2,
value = { min = 825, max = 1574 },
},
{
item = "encrypted_radio",
label = "Encrypted Radio",
category = "tech",
rarity = "rare",
weight = 222,
chance = 22.2, -- %
minQty = 1,
maxQty = 1,
value = { min = 1687, max = 3506 },
},
{
item = "usb_drive",
label = "USB Drive",
category = "tech",
rarity = "uncommon",
weight = 280,
chance = 28, -- %
minQty = 1,
maxQty = 3,
value = { min = 232, max = 556 },
},
{
item = "signal_scanner",
label = "Signal Scanner",
category = "tech",
rarity = "epic",
weight = 128,
chance = 12.8, -- %
minQty = 1,
maxQty = 1,
value = { min = 5943, max = 9563 },
},
{
item = "hacking_laptop",
label = "Hacking Laptop",
category = "tech",
rarity = "epic",
weight = 130,
chance = 13, -- %
minQty = 1,
maxQty = 1,
value = { min = 6976, max = 11050 },
},
{
item = "silver_bracelet",
label = "Silver Bracelet",
category = "jewelry",
rarity = "uncommon",
weight = 279,
chance = 27.9, -- %
minQty = 1,
maxQty = 2,
value = { min = 708, max = 1527 },
},
{
item = "ruby_pendant",
label = "Ruby Pendant",
category = "jewelry",
rarity = "rare",
weight = 159,
chance = 15.9, -- %
minQty = 1,
maxQty = 1,
value = { min = 3109, max = 5240 },
},
{
item = "stolen_car_key",
label = "Stolen Car Key",
category = "key",
rarity = "uncommon",
weight = 226,
chance = 22.6, -- %
minQty = 1,
maxQty = 2,
value = { min = 324, max = 820 },
},
{
item = "uncut_fentanyl",
label = "Uncut Fentanyl",
category = "drug",
rarity = "legendary",
weight = 78,
chance = 7.8, -- %
minQty = 1,
maxQty = 2,
value = { min = 9394, max = 15227 },
},
{
item = "casino_chips_high",
label = "Casino Chips (High)",
category = "cash",
rarity = "uncommon",
weight = 279,
chance = 27.9, -- %
minQty = 1,
maxQty = 10,
value = { min = 509, max = 1171 },
},
{
item = "weed_brick",
label = "Weed Brick",
category = "drug",
rarity = "uncommon",
weight = 301,
chance = 30.1, -- %
minQty = 1,
maxQty = 4,
value = { min = 816, max = 1732 },
},
}
-- Example roll (server-side):
-- local roll = math.random(1, 100)
-- for _, entry in ipairs(Config.LootTable) do
-- if roll <= entry.chance then
-- local qty = math.random(entry.minQty, entry.maxQty)
-- exports.ox_inventory:AddItem(source, entry.item, qty)
-- break
-- end
-- end