Skip to content
Documentation
Games & Events4In-Game Casino

r_casino Creating Cases

Make your own r_casino cases in config.lua: items, weapons, vehicles and cash rewards, rarities, Discord role locks, cooldowns and images.

All cases are in R.Cases in config.lua. Add a case by adding a block.

A case

{
    name = "Weapon Case",
    value = "weaponcase",
    price = 500,
    image = "media/case.png",
    requiredRole = nil,
    tag = nil,
    cooldownHours = 0,
    contains = {
        { name = "Vintage Pistol",  value = "weapon_vintagepistol", type = "weapon", rarity = "common",    image = "media/WEAPON_VINTAGEPISTOL.png" },
        { name = "Pistol .50",      value = "weapon_pistol50",      type = "weapon", rarity = "rare",      image = "media/WEAPON_PISTOL50.png" },
        { name = "C4 Charge",       value = "c4",                   type = "item",   rarity = "epic",      image = "media/c4.png" },
        { name = "SMG",             value = "weapon_smg",           type = "weapon", rarity = "legendary", image = "media/WEAPON_SMG.png" },
    },
},
FieldWhat it does
name / valueName on the card and a unique key.
priceCost in coins.
imagemedia/<file>.png from web/build/media/, or a full URL.
requiredRoleDiscord role id needed to open it. nil = everyone.
tagSmall badge on the card, like "VIP".
cooldownHoursHours between openings per player. 0 = none.

Rewards

typevalue
"item" / "weapon"The item or weapon name in your inventory.
"vehicle"The vehicle model. It goes to the player's garage.
"money"The cash amount, paid to R.MoneyCurrency.
{ name = "$5,000 Cash", value = 5000,    type = "money",   rarity = "rare",      image = "media/cashroll.png" },
{ name = "Adder",       value = "adder", type = "vehicle", rarity = "legendary", image = "media/S15lifc.png" },

Rarities

Every reward is common, rare, epic or legendary. The chances are in Games → Cases (50 / 35 / 12 / 3 by default). A case doesn't need every rarity. With ShowCaseOdds = true players see each reward's chance.

Locked cases

requiredRole = "1303080734486958105",
tag = "VIP",
cooldownHours = 24,

Discord roles need R.Discord.Enabled = true (see Configuration). Use the role id, not its name.