⚙️Configuration

Detailed explanation of the config file to adapt the resource to your player needs.

The config.lua

Config = {}

Config.Framework        = "esx" -- "qb"
Config.Inventory        = "ox" -- "ps", "qb", "ox", "qs"
Config.Target           = "ox" -- ox !!!!!!!!! IMPORTANT
Config.FrameworkPseudo  = 'qb-core'
Config.phone            = 'qb-phone'
Config.ServerName       = 'Your Server Name'
Config.ZoneDebug        = false

Config.UseNPCDialog     = true

-- Only if NPCDialog is set to false                           
Config.NPC = {
    model  = "s_m_y_garbage",
    anim   = "CODE_HUMAN_MEDIC_TIME_OF_DEATH",
    coords = vector4(-322.08, -1539.33, 26.73, 272.88)
}    

Config.MinTime = 0.5    -- minutes to generate a work area
Config.MaxTime = 1      -- minutes to generate a work area
Config.Chance = 4       -- MUST BE >= 2 (the more it is, the more garbage player gets from a bin)
Config.CompactTime = 30 -- Compact time in Seconds
Config.Blip = {
    coords = vector3(-322.08, -1539.33, 26.73),
    BlipId = 318,
    BlipColor = 15,
    BlipSize = 0.7,
    BlipText = "Sanitation"
}
Config.Slots = 40
Config.Radius = 150.0
Config.Objects = {
    `prop_dumpster_01a`,
    `prop_dumpster_02b`,
    `prop_dumpster_3a`,
    `prop_dumpster_4a`,
    `prop_dumpster_4b`,
    `prop_dumpster_02a`,
    `prop_bin_11a`,
    `prop_bin_04a`,
    `prop_bin_13a`,
    `prop_bin_08open`,
    `prop_bin_beach_01a`,
    `prop_bin_12a`,
    `prop_bin_14b`,
    `prop_bin_05a`,
    `prop_bin_02a`,
    `prop_bin_01a`,
    `prop_bin_11b`,
    `prop_bin_07d`,
    `prop_bin_07a`,
    `prop_bin_07b`,
    `prop_bin_06a`,
    `prop_bin_08a`,
    `zprop_bin_01a_old`,
    `prop_bin_07c`,
    `prop_bin_03a`,
}

Config.Garbage = {
    `prop_rub_binbag_04`,       -- keep it first
    `prop_cs_street_binbag_01`, -- keep it second
    `prop_rub_binbag_05`,       -- keep it third
    `prop_rub_binbag_06`,
    `p_rub_binbag_test`,
    `ch_chint10_binbags_smallroom_01`,
    `hei_prop_heist_binbag`,
    `prop_ld_binbag_01`,
    `prop_rub_binbag_sd_01`,
    `prop_rub_binbag_08`,
    `prop_rub_binbag_sd_02`,
    `p_binbag_01_s`,
    `prop_rub_binbag_01b`,
    `prop_rub_binbag_03b`,
    `ng_proc_binbag_01a`,
    `prop_rub_binbag_01`,
    `prop_rub_binbag_03`,
    `bkr_prop_fakeid_binbag_01`,
    `ng_proc_binbag_02a`,
    `prop_cs_rub_binbag_01`,
    `prop_ld_rub_binbag_01`,
}

Config.DropItem = {
    [1] = {
        model = `prop_cs_sol_glasses`,
        item  = 'b_glasses',
    },
    [2] = {
        model = `prop_cctv_02_sm`,
        item  = 'b_tv',
    },
    [3] = {
        model = `p_laptop_02_s`,
        item  = 'b_laptop',
    },
    [4] = {
        model = `prop_pap_camera_01`,
        item  = 'b_camera',
    },
    [5] = {
        model = `prop_cs_phone_01`,
        item  = 'b_phonefix',
    },
}
Config.Compact = {
    ['trash'] = {
        ['metalscrap'] = {
            amount = math.random(10,20), 
            info = {},
        },
        ['plastic'] = {
            amount = math.random(10,20), 
            info = {},
        } ,
        ['copper'] = {
            amount = math.random(10,20), 
            info = {},
        } ,
        ['aluminum'] = {
            amount = math.random(10,20), 
            info = {},
        } ,
        ['aluminumoxide'] = {
            amount = math.random(10,20), 
            info = {},
        }, 
        ['iron'] = {
            amount = math.random(10,20), 
            info = {},
        }, 
        ['ironoxide'] = {
            amount = math.random(10,20), 
            info = {},
        }, 
        ['steel'] = {
            amount = math.random(10,20), 
            info = {},
        }, 
        ['rubber'] = {
            amount = math.random(10,20), 
            info = {},
        }, 
        ['glass'] = {
            amount = math.random(10,20), 
            info = {},
        }, 
    },
    ['b_glasses'] = {
        ['metalscrap'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['plastic'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['copper'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['aluminum'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['aluminumoxide'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['iron'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['ironoxide'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['steel'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['rubber'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['glass'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
    },
    ['b_tv'] = {
        ['metalscrap'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['plastic'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['copper'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['aluminum'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['aluminumoxide'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['iron'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['ironoxide'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['steel'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['rubber'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['glass'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
    },
    ['b_laptop'] = {
        ['metalscrap'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['plastic'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['copper'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['aluminum'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['aluminumoxide'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['iron'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['ironoxide'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['steel'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['rubber'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['glass'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
    },
    ['b_phonefix'] = {
        ['metalscrap'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['plastic'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['copper'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['aluminum'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['aluminumoxide'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['iron'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['ironoxide'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['steel'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['rubber'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['glass'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
    },
    ['b_camera'] = {
        ['metalscrap'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['plastic'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['copper'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['aluminum'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['aluminumoxide'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['iron'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['ironoxide'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['steel'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['rubber'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
        ['glass'] = {
            amount = math.random(1,5), 
            info = {},
        }, 
    },
}

Config.Loacations ={
    [1] = {
        name = "forumdrive",
        coords = vector4(-168.07, -1662.8, 33.31, 137.5),
    },
    [2] = {
        name = "grovestreet",
        coords = vector4(118.06, -1943.96, 20.43, 179.5),
    },
    [3] = {
        name = "jamestownstreet",
        coords = vector4(297.94, -2018.26, 20.49, 119.5),
    },
    [4] = {
        name = "davisave",
        coords = vector4(424.98, -1523.57, 29.28, 120.08),
    },
    [5] = {
        name = "littlebighornavenue",
        coords = vector4(488.49, -1284.1, 29.24, 138.5),
    },
    [6] = {
        name = "vespucciblvd",
        coords = vector4(307.47, -1033.6, 29.03, 46.5),
    },
    [7] = {
        name = "elginavenue",
        coords = vector4(239.19, -681.5, 37.15, 178.5),
    },
    [8] = {
        name = "elginavenue2",
        coords = vector4(543.51, -204.41, 54.16, 199.5),
    },
    [9] = {
        name = "powerstreet",
        coords = vector4(268.72, -25.92, 73.36, 90.5),
    },
    [10] = {
        name = "altastreet",
        coords = vector4(267.03, 276.01, 105.54, 332.5),
    },
    [11] = {
        name = "didiondrive",
        coords = vector4(21.65, 375.44, 112.67, 323.5),
    },
    [12] = {
        name = "miltonroad",
        coords = vector4(-546.9, 286.57, 82.85, 127.5),
    },
    [13] = {
        name = "eastbourneway",
        coords = vector4(-683.23, -169.62, 37.74, 267.5),
    },
    [14] = {
        name = "eastbourneway2",
        coords = vector4(-771.02, -218.06, 37.05, 277.5),
    },
    [15] = {
        name = "industrypassage",
        coords = vector4(-1057.06, -515.45, 35.83, 61.5),
    },
    [16] = {
        name = "boulevarddelperro",
        coords = vector4(-1558.64, -478.22, 35.18, 179.5),
    },
    [17] = {
        name = "sandcastleway",
        coords = vector4(-1350.0, -895.64, 13.36, 17.5),
    },
    [18] = {
        name = "magellanavenue",
        coords = vector4(-1243.73, -1359.72, 3.93, 287.5),
    },
    [19] = {
        name = "palominoavenue",
        coords = vector4(-845.87, -1113.07, 6.91, 253.5),
    },
    [20] = {
        name = "southrockforddrive",
        coords = vector4(-635.21, -1226.45, 11.8, 143.5),
    },
    [21] = {
        name = "southarsenalstreet",
        coords = vector4(-587.74, -1739.13, 22.47, 339.5),
    },
}

Last updated