🎁LootCases
Item Images
Gather item images from your inventory
ItemImageResource = 'ox_inventory', ItemImagePath = '/web/images/',
Chance System
The lower the number the lower the chance
RarityChance = {
["Common"] = 80, -- Lowest Chance
["Uncommon"] = 50,
["Rare"] = 30,
["Epic"] = 15,
["Legendary"] = 1, --Rarity Chance
},
Case Setup
Setup your case with custom item's, weapon's & money!
CaseList = {
["common_case"] = { -- Usable Item
Title = "Common Case",
Color = "#FFFFFF",
Items = {
{name = "9mm", item = "pistol_ammo", amount = 1, rarity = "Legendary", img = ""},
{name = "DEEG", item = "WEAPON_REVOLVER", amount = 1, rarity = "Legendary", img = ""},
{name = "$1,000,000", item = "money", amount = 1000000, rarity = "Legendary", img = ""},
},
},
},
Chat Notify
Customizable notification for rare items won
ChatNotify = function(message) -- Notify used for rare items won
TriggerClientEvent('chat:addMessage', -1, {
template = '<div> <b>ALW Loot Cases</b> {0} </div>',
args = {message}
})
end

Last updated