⚙️Configuration

Prize

  • min: This represents the minimum amount of the prize that a player can receive. In your example, the minimum prize amount is set to 1000.

  • max: This represents the maximum amount of the prize that a player can receive. In your example, the maximum prize amount is set to 12000.

  • item: This is the item that will be given as a prize. If this item exists in the safe table, the player will receive it as a prize. In your example, the item is set to 'black_money'. If this item is not present in the safe table, the player will receive cash instead.

  • safe: This is a nested table that contains information about the items that can be found inside a safe. - ['black_money']: This is an example entry for the 'black_money' item inside the safe. It has the following properties:

    • min: The minimum amount of 'black_money' that can be found in the safe is 5000.

    • max: The maximum amount of 'black_money' that can be found in the safe is 10000.

    • chance: The chance of finding 'black_money' inside the safe is 100%, meaning it will always be available when the safe is robbed.

Config.Prize = {
    min = 1000,
    max = 12000,
    item = 'black_money', -- if this one is not present, it will give cash instead
    safe = {
        ['black_money'] = {
            min = 5000,
            max = 10000,
            chance = 100
        },
        ['goldbar'] = {
            min = 1,
            max = 5,
            chance = 20
        },
        ['moneybag'] = {
            min = 1,
            max = 2,
            chance = 10
        }
    }
}

Dispatch

To add your own dispatch, you can go to client.lua SendDispatch function

Config File

Full config file

Last updated