Skip to Content
Case Openings⚙️ Configuration

Configuration

You may edit this file to your desire at /config.lua.

-- These are configurable, you can change them to your liking local animationDuration = 7000 -- Main spin animation (ms) local snapDuration = 400 -- Snap to center animation (ms) local revealDelay = 3000 -- Wait time after reveal before closing (ms) return { totalAnimationTime = animationDuration + snapDuration + revealDelay, -- Don't change this, it's used to calculate the total animation time enableDiscordWebhook = false, discordWebhook = 'https://discord.com/api/webhooks/{guild_id}/{webhook_id}', -- This is secure, only accessible on the server, replace {guild_id} and {webhook_id} with the actual values cases = { case_daily = { -- This is the item name of the case in your ox_inventory label = 'Daily Case', rollLength = 100, -- Amount of items to be rolled, this is the amount of items that will be displayed in the case items = { common = { { name = 'money', -- Inventory item name (Label is pulled from ox_inventory) quantity = 10000, -- Quantity of item to be rewarded chance = 25, -- Win chance weight, this is the chance of the item being rolled }, { name = 'weapon_pistol', chance = 25, }, }, uncommon = { { name = 'case_daily', chance = 15, }, { name = 'weapon_smg', chance = 15, }, }, rare = { { name = 'weapon_assaultrifle', chance = 10, }, }, epic = { { name = 'weapon_sniperrifle', chance = 7, }, }, legendary = { { name = 'weapon_rpg', chance = 3, }, } }, }, case_weekly = { label = 'Weekly Case', rollLength = 100, items = { -- Configure as you like, and don't be afraid to add more cases }, }, }, }