Benches

File Path: shared/config.benches.lua

What is this about?

This enables players on your server to "break" the benches and collect materials that they would need to craft their desks. The crafting process is not implemented in the script, so if you enable this options you will have to make the desks craft-able yourself depending on your script.


Config File

Config["Benches"] = {
    -- Whether or not this feature is enabled
    Enabled = true,
    
    -- Reset time of all robbed benches. Every 10 minutes all robbed benches will be reset.
    ResetTime = 10, -- In minutes
    
    -- Supported models
    ["Models"] = {
        "prop_bench_01a",
        "prop_bench_05",
        "prop_bench_02",
        "prop_bench_10",
        "prop_bench_11",
        "prop_bench_07",
        "prop_bench_06",
        "prop_bench_08",
    },
    
    -- Don't touch this
    ["RobbedBenches"] = {},
    
    -- Rewards from the benches
    ["RewardItems"] = {
        [1] = {
            Name = "bd_lq_plank",
            MinAmount = 1,
            MaxAmount = 10,
            Chance = 70,
        },
        [2] = {
            Name = "bd_hq_plank",
            MinAmount = 1,
            MaxAmount = 3,
            Chance = 30,
        },
        [3] = {
            Name = "bd_steel_bar",
            MinAmount = 1,
            MaxAmount = 1,
            Chance = 10,
        },
    },
}

Last updated