circleRoulette Configuration

To configure the roulette wheel, go to the Setting.lua file

Right now we'll focus on the Config.Roulette, you'll see an items section where you should add the items to the roulette

Config.Roulette = {
    enable = true, -- Enable or disable the use of the roulette wheel. If this option is disabled, you must enable Config.ServerRules to display your server rules
    price = 0, -- Price to spin the daily roulette wheel
    cooldown = 86400,
    items = { -- Here you will find the items that the roulette wheel gives away; if you want more information about this, refer to the documentation
        {
            id = "20_coins",
            label = "20 Coins",
            image = "coins.png",
            type = 'coins',
            ammount = 20,
        },
        {
            id = "money_50k",
            label = "50 K Cash",
            image = "money.png",
            type = 'money',
            ammount = 20,
        },
        {
            id = "pistol_1",
            label = "X1 Pistol",
            image = "pistol.png",
            type = 'weapon_pistol',
            ammount = 1,
        },
        {
            id = "armour_1",
            label = "Armour",
            image = "armour.png",
            type = 'armour',
            ammount = 1,
        },
        {
            id = "10_coins",
            label = "10 Coins",
            image = "coins.png",
            type = 'coins',
            ammount = 10,
        },
        {
            id = "casino_chips_50",
            label = "50 Casino Chips",
            image = "casino_chips.png",
            type = 'casino_chips',
            ammount = 50,
        },
        {
            id = "laptop_1",
            label = "Laptop",
            image = "laptop.png",
            type = 'laptop',
            ammount = 1,
        },
        {
            id = "smg_1",
            label = "X1 SMG",
            image = "smg.png",
            type = 'weapon_smg',
            ammount = 1,
        }
    }
}

How do I add a new item? Well, we'll give you an example:

If we want to add money, we will use this template:

If we want to add coins, we must follow this template and, of course, adapt the coin system you use; in our case, the Jota Dev coin system is already linked

jc_pausemenu/Editable/Server/Framework/SMain.lua

If it's a weapon, we'll have to follow this template; always put the weapon code in the type field:

Now, if you want to add an item, you must follow this pattern:

Parameters explained:

  • id: Unique prize identifier

  • label: Display name of the award

  • image: Representative image of the award

  • type: Define what type of reward it is

type
Description

money

Framework money

coins

System coins

item

Inventory item

weapon_*

Weapon (weapon_pistol, weapon_smg, etc.)

How can I add images to the roulette wheel?

To add images to the roulette wheel, make sure you have entered the same name in Config.Roulette -> items -> image as you will add it to the following path: jc_pausemenu/Nui/img/roulette/

Last updated