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-- minutesConfig.SearchOption ="progress" -- "progress" or "skillcheck"Config.SkillCheckAmount =3-- Amount of skill checksConfig.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 glovesConfig.MinDrops =1-- Min amount of different items to dropConfig.MaxDrops =3-- Max amount of different items to dropConfig.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 gloves0, 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 gloves0, 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
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 }}