Page cover

๐ŸšฎBins

This script provides users the ability to search for items


  • Define bin models that can be searched for items

Config.Bins = {
    models = { -- bin models that can be searched
        `prop_dumpster_01a`, `prop_dumpster_02a`, `prop_dumpster_02b`, `prop_dumpster_3a`, `prop_dumpster_4a`, `prop_dumpster_4b`,
        `prop_bin_05a`, `prop_bin_06a`, `prop_bin_07a`, `prop_bin_07b`, `prop_bin_07c`, `prop_bin_07d`, `prop_bin_08a`, `prop_bin_08open`,
        `prop_bin_09a`, `prop_bin_10a`, `prop_bin_10b`, `prop_bin_11a`, `prop_bin_12a`, `prop_bin_13a`, `prop_bin_14a`, `prop_bin_14b`,
        `prop_bin_beach_01d`, `prop_bin_delpiero`, `prop_bin_delpiero_b`, `prop_recyclebin_01a`, `prop_recyclebin_02_c`, `prop_recyclebin_02_d`,
        `prop_recyclebin_02a`, `prop_recyclebin_02b`, `prop_recyclebin_03_a`, `prop_recyclebin_04_a`, `prop_recyclebin_05_a`, `prop_gas_smallbin01`,
        `zprop_bin_01a_old`, `hei_heist_kit_bin_01`, `ch_prop_casino_bin_01a`, `vw_prop_vw_casino_bin_01a`, `mp_b_kit_bin_01`, `prop_recyclebin_04_b`,
    },
    --- other options
}

  • You can define chances to find items, get pricked by a dirty needle and lose health and also the chance to find cash

Config.Bins = {
    ---
    chances = {
        findItem = 80, --chance to find item or nothing at all
        dirtyNeedle = 10, -- chance to get pricked by a dirty needle and loose health
        money = 10, -- chance to find cash when searching
        cashAmount = math.random(100,250), -- cash amount found
    },
    ---
}

Define icon, label and distance for the target interactions

  • Note: never set the target distance higher than the value set in Config.CoreSettings.Security.Maxdistance to prevent false positives for exploits


Cooldowns can be set to prevent exploits and abuse

  • The duration is the general cooldown timer for all interactions (default is 5 seconds)

  • You can also determine the cooldown timer value for searching the same bin again (default is 60 seconds)


Define progress circle settings such as the duration, label and animations

  • For no animation set to nil like this anim = nil,


Define reward items found from searching bins

  • You can use math.random() or have a static number for the amount

  • The name is the item name and must be in your items.lua

  • The amount is the amount of that item that can be found

  • One item will be picked at random


Below is an example of a finished config for Config.Bins

Last updated