2025-07-28 02:09:10 +02:00
|
|
|
Config = {}
|
|
|
|
|
|
|
|
-- Main settings
|
|
|
|
Config.EmptyInterval = 2880 -- 2 days in minutes (48 hours * 60 minutes)
|
|
|
|
Config.CheckFrequency = 30 -- How often to check for trash cans to empty (in minutes)
|
|
|
|
|
|
|
|
-- Trash can models that can be interacted with
|
|
|
|
Config.TrashCanModels = {
|
|
|
|
'prop_bin_01a',
|
|
|
|
'prop_bin_03a',
|
|
|
|
'prop_bin_04a',
|
|
|
|
'prop_bin_07a',
|
|
|
|
'prop_bin_07d',
|
2025-07-28 02:37:52 +02:00
|
|
|
'prop_bin_08a',
|
2025-07-28 02:09:10 +02:00
|
|
|
'prop_cs_bin_01',
|
|
|
|
'prop_cs_bin_01_skinned',
|
|
|
|
'prop_cs_bin_02',
|
|
|
|
'prop_cs_bin_03',
|
2025-07-28 21:56:56 +02:00
|
|
|
'm23_2_prop_m32_dumpster_01a',
|
|
|
|
'prop_dumpster_01a',
|
|
|
|
'prop_dumpster_02b',
|
|
|
|
'prop_dumpster_4b',
|
|
|
|
'prop_dumpster_4a',
|
|
|
|
|
2025-07-28 02:09:10 +02:00
|
|
|
-- Add more trash can models as needed
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Inventory settings
|
|
|
|
Config.TrashCanInventory = {
|
|
|
|
maxweight = 50000, -- 50kg max
|
|
|
|
slots = 20, -- 20 Slots
|
|
|
|
label = 'Mülltonne'
|
|
|
|
}
|
|
|
|
|
2025-07-28 02:37:52 +02:00
|
|
|
-- Random item spawn settings
|
|
|
|
Config.RandomItems = {
|
|
|
|
enabled = true, -- Enable/disable random item spawning
|
|
|
|
chanceToSpawn = 75, -- Percentage chance that items will spawn after emptying (0-100)
|
|
|
|
minItems = 1, -- Minimum number of items to spawn
|
|
|
|
maxItems = 5, -- Maximum number of items to spawn
|
|
|
|
|
|
|
|
-- Items that can spawn in trash cans with their probabilities
|
|
|
|
-- Format: {name = "item_name", amount = {min, max}, chance = probability_percentage}
|
|
|
|
items = {
|
|
|
|
-- Common trash items (70-90% chance)
|
2025-07-28 02:39:10 +02:00
|
|
|
{name = "weapon_knife", amount = {1, 5}, chance = 90},
|
2025-07-28 02:37:52 +02:00
|
|
|
{name = "empty_can", amount = {1, 5}, chance = 85},
|
|
|
|
{name = "paper_trash", amount = {1, 3}, chance = 80},
|
|
|
|
{name = "banana_peel", amount = {1, 2}, chance = 75},
|
|
|
|
{name = "plastic_bag", amount = {1, 3}, chance = 70},
|
|
|
|
|
|
|
|
-- Uncommon items (30-60% chance)
|
|
|
|
{name = "broken_phone", amount = {1, 1}, chance = 60},
|
|
|
|
{name = "old_newspaper", amount = {1, 3}, chance = 50},
|
|
|
|
{name = "empty_cigarette_pack", amount = {1, 2}, chance = 40},
|
|
|
|
{name = "food_waste", amount = {1, 3}, chance = 30},
|
|
|
|
|
|
|
|
-- Rare items (10-25% chance)
|
|
|
|
{name = "damaged_electronics", amount = {1, 1}, chance = 25},
|
|
|
|
{name = "scrap_metal", amount = {1, 2}, chance = 20},
|
|
|
|
{name = "rubber_gloves", amount = {1, 1}, chance = 15},
|
|
|
|
{name = "aluminum_can", amount = {1, 3}, chance = 10},
|
|
|
|
|
|
|
|
-- Very rare items (1-5% chance)
|
|
|
|
{name = "lost_wallet", amount = {1, 1}, chance = 5},
|
|
|
|
{name = "broken_watch", amount = {1, 1}, chance = 3},
|
|
|
|
{name = "old_jewelry", amount = {1, 1}, chance = 2},
|
|
|
|
{name = "rare_collectible", amount = {1, 1}, chance = 1},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-07-28 02:09:10 +02:00
|
|
|
-- Notification settings
|
|
|
|
Config.Notifications = {
|
|
|
|
noTrashCanFound = {
|
|
|
|
title = 'Mülltonne',
|
|
|
|
description = 'Keine Mülltonne gefunden!',
|
|
|
|
type = 'error'
|
|
|
|
},
|
|
|
|
trashCanEmptied = {
|
|
|
|
title = 'Mülltonne',
|
|
|
|
description = 'Die Müllabfuhr hat die Mülltonne geleert!',
|
|
|
|
type = 'info',
|
|
|
|
duration = 5000
|
|
|
|
},
|
|
|
|
manualEmptySuccess = {
|
|
|
|
title = 'System',
|
|
|
|
description = 'Alle Mülltonnen wurden geleert',
|
|
|
|
type = 'success'
|
|
|
|
},
|
|
|
|
noPermission = {
|
|
|
|
title = 'System',
|
|
|
|
description = 'Du hast keine Berechtigung für diesen Befehl',
|
|
|
|
type = 'error'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Logging settings
|
|
|
|
Config.Logs = {
|
|
|
|
enabled = true,
|
|
|
|
webhookName = 'trash', -- Name of the webhook in qb-log
|
|
|
|
emptyTitle = 'Trash Can Emptied',
|
2025-07-28 02:37:52 +02:00
|
|
|
emptyColor = 'blue',
|
|
|
|
spawnTitle = 'Items Spawned in Trash',
|
|
|
|
spawnColor = 'green'
|
2025-07-28 02:09:10 +02:00
|
|
|
}
|