CONFIG

Default Config

Config = {}

Config.Lang = "en"

Config.Framework = "detect" -- "detect" or "ESX" or "qb-core"
Config.Inventory = "detect" -- "detect" or "ESX" or "qb-core" or "OX"

Config.SearchTime = 5000 -- Time in ms (1000 = 1 Second)
Config.Cooldown = 5 -- minutes

Config.SearchOption = "progress" -- "progress" or "skillcheck"
Config.SkillCheckAmount = 3 -- Amount of skill checks
Config.SkillCheckDifficulty = "easy" -- "easy", "medium", "hard"

Config.HurtChance = 20 -- Chance of getting hurt when searching trash with no gloves (change to 0 to disable)
Config.Damage = 10 -- Damage dealt when getting hurt when searching trash with no gloves

Config.MinDrops = 1 -- Min amount of different items to drop
Config.MaxDrops = 3 -- Max amount of different items to drop

Config.Models = {  -- Models of the trash bins (https://gtahash.ru/)
    "prop_cs_bin_01",
    "prop_cs_bin_02",
    "prop_cs_bin_03",
    "prop_cs_dumpster_01a",
    "prop_dumpster_4b",
    "prop_dumpster_4a",
}

Config.ModelDrops = { -- Model specific item drop table (These props still have the generic drops)
    [`prop_dumpster_4a`] = {
        {item = "weapon_pistol", min = 1, max = 1, dropRate = 10},
    }
}

Config.Drops = { -- Generic item drop table
    {item = "plastic", min = 1, max = 3, dropRate = 100},
    {item = "rubber", min = 1, max = 3, dropRate = 100},
    {item = "copper", min = 1, max = 3, dropRate = 100},
    {item = "aluminum", min = 1, max = 3, dropRate = 100},
    {item = "iron", min = 1, max = 3, dropRate = 100},
    {item = "steel", min = 1, max = 3, dropRate = 100},
    {item = "glass", min = 1, max = 3, dropRate = 100},
}

Config.NoGlovesM = { -- Male hands that do not have gloves
    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 112, 113, 114, 184, 196, 198 -- base game numbers
}

Config.NoGlovesF = { -- Female hands that do not have gloves
    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 129, 130, 131, 153, 161, 229, 241 -- base game numbers 
}

Config.Animation = { -- Animation for searching trash (https://forge.plebmasters.de/animations)
    dict = "mini@repair",
    name = "fixing_a_ped",
}

Config Descriptions

NameDescription

Lang

The language you want the script to use, add languages into the locale folder.

Framework

The framework you're using, recommended to leave on detect.

Inventory

The Inventory you're using, recommended to leave on detect.

SearchTime

Amount of time it takes to search in milliseconds

Cooldown

Local client cooldown on specific bins

SearchOption

Whether you want it to use progress or skill checks

SkillCheckAmount

If skillchecks, the amount of skill checks that appear

SkillCheckDifficulty

if skillchecks, the difficulty of the skill checks

HurtChance

The chance to get cut on a bin 0-100 while not wearing gloves

Damage

The amount of damage from a cut

MinDrops

Minimum amount of items you recieve from a bin

MaxDrops

Maxiumum amount of items you recieve from a bin

Models

Models you wish to add as a lootable bin

ModelDrops

Specific items set only to drop from these models (see below)

Drops

The items that you find in bins

NoGlovesM

Numbers for arms without gloves (Male)

NoGlovesF

Numbers for arms without gloves (Female)

Animation

Animation that plays when searching bins

Model Specific Loot

The layout for this table is the same as Config.Drops, except it's nested within another table. This might sounds confusing or daunting but let me break it down for you.

Config.ModelDrops = {
    [model_hash] = {
        -- add loot here
    }
}

A model hash is required when defining a model specific drop. If you have the name of the prop / model for example prop_dumpster_4a just insert where you see model_hash with the name surrounded by `` for example `prop_dumpster_4a`

Config.ModelDrops = {
    [`prop_dumpster_4a`] = {
        -- add loot here
    }
}

Last updated