Kartik Scripts

Daily Spin

The daily prize wheel.

Everything except Perm can also be changed live in Admin → Daily Spin. Once saved there, the admin panel is used instead of this file until you press Reset to config. Turn the whole feature off with Features.DailySpin = false in shared/core.lua.


General

SettingDefaultWhat it does
Per'gang''gang': one spin shared by the whole gang. 'player': every member gets their own spin
CooldownHours24Hours between spins
MinLevel1Gang level needed to spin
PermfalseRank permission needed to spin, e.g. 'manage'. false = any member

Prizes (Prizes)

Prizes = {
    { kind = 'dirty',  amount = 5000,   weight = 30, rarity = 'common' },
    { kind = 'cash',   amount = 2500,   weight = 25, rarity = 'common' },
    { kind = 'item',   name = 'lockpick', amount = 3, weight = 18, rarity = 'uncommon' },
    { kind = 'xp',     amount = 150,    weight = 12, rarity = 'uncommon' },
    { kind = 'item',   name = 'armour', amount = 2, weight = 8, rarity = 'rare' },
    { kind = 'dirty',  amount = 25000,  weight = 5, rarity = 'rare' },
    { kind = 'xp',     amount = 1000,   weight = 1.5, rarity = 'epic' },
    { kind = 'dirty',  amount = 100000, weight = 0.5, rarity = 'legendary' },
},
FieldMeaning
kind'cash' / 'dirty' (gang treasury), 'xp' (gang), 'item' / 'weapon' (the player who spun), 'vehicle' (gang garage)
nameItem name, weapon item, or vehicle model
amountHow many / how much
weightRelative chance: weight ÷ total weight. Decimals allowed
raritycommon, uncommon, rare, epic, legendary. Colours the wheel
labelOptional display name

Up to 24 prizes.

A prize with an item that doesn't exist in your inventory is skipped, with a yellow warning in the server console. Rename lockpick and armour if your items are called something else.

More: Daily Spin.

On this page