Common Issues
This page covers frequently encountered problems with sd-dumpsters and their solutions.
Dumpsters Cannot Be Looted (Networking Issue)
Symptom
Players cannot interact with or loot any dumpsters. No target option appears on dumpster props.
Solutions
Check if
Config.GlobalCooldownistrue-- when enabled, the script networks dumpster entities to share cooldowns across all players. If your server has a very high volume of networked entities, the script may fail to network dumpsters.Set
Config.GlobalCooldowntofalseto use per-player cooldowns instead. This removes the networking requirement:luaConfig.GlobalCooldown = falseReduce networked entities on your server by auditing other scripts that create networked objects.
TIP
This issue only affects a small number of servers with exceptionally high entity counts. If you cannot identify the source of excess entities, switching to per-player cooldowns is the simplest fix.
Cooldowns Not Working
Symptom
Players can loot the same dumpster repeatedly without waiting, or the cooldown resets unexpectedly.
Solutions
Check the cooldown setting in
configs/config.lua:luaConfig.DumpsterCooldown = 10 -- Minutes (not seconds)Verify oxmysql is running -- player data is stored in the database. If oxmysql is not started before sd-dumpsters, data will not persist.
Check ensure order -- sd-dumpsters must start after oxmysql in your
server.cfg.Global vs per-player -- if
Config.GlobalCooldownistrue, cooldowns are shared. Iffalse, each player has their own cooldown timer.
Items Not Appearing in Inventory
Symptom
Players loot a dumpster but receive no items, or items show in the console but not in the inventory.
Solutions
Verify items are registered -- all loot table items must exist in your inventory system. Check the Installation guide for item registration.
Check loot-to-stash mode:
luaConfig.LootToStash = false -- false = direct to inventory, true = into a temporary stashIf set to
true, items are placed in a temporary stash that opens after the progress bar. The player must take items from the stash. This requiresox_inventory.Check loot chance -- each level has a
DumpsterLootChancepercentage. At level 1 this is only 60%, meaning 40% of searches find nothing. This is intentional.Inventory full -- if the player's inventory is full (weight limit), items cannot be added. The notification
"You can't carry all of the loot"will display.Check if minigame is enabled and failed -- if
Config.Minigame.Dumpsters.Enableistrue, the player must pass the skill check before receiving loot. Failing the minigame results in no loot.
Hobo King Not Spawning
Symptom
The Hobo King NPC does not appear at the expected location, or the blip shows but no NPC is present.
Solutions
Check if the ped is enabled:
luaConfig.Ped.Enable = trueVerify the ped model -- the default model is
"u_m_y_militarybum". Ensure this model is not blocked by your anticheat:luaConfig.Ped.Model = "u_m_y_militarybum"Check location coordinates -- verify the spawn locations in
Config.Ped.Locationare valid and accessible positions. The NPC spawns at a random location from this list each time the script starts:luaConfig.Ped.Location = { {x = 3.152987, y = -1215.155, z = 25.70303, w = 267.1587} }Blip is disabled by default --
Config.Blip.Enabledefaults tofalse. Enable it to show the King's location on the map:luaConfig.Blip.Enable = trueInteraction distance -- make sure you are within
Config.Ped.Interaction.Distance(default 3.0) of the NPC to see the target option.
Locked Dumpsters Not Working
Symptom
Large dumpsters are never locked, or players cannot open locked dumpsters even with a power saw.
Solutions
Check if locked dumpsters are enabled:
luaConfig.LockedDumpster = { Enable = true }Verify the grinder item name matches your inventory:
luaConfig.Items.Grinder = 'powersaw'Check lock chance per level -- at level 1, the default lock chance is 25%. At level 5, it drops to 5%. The chance is defined in
Config.Levels[level].LockChance.Only large dumpsters can be locked -- props in
Config.BinProps.Small(trash cans) are never locked. Only props inConfig.BinProps.Large(dumpsters/skips) can be locked.
Rat Not Following Player
Symptom
After calling the rat with /CallRat or the export, it does not appear or does not follow.
Solutions
Check if the command is enabled:
luaConfig.RegisterCommandForFollow = trueCheck if the export is enabled:
luaConfig.CreateExportForRatFollow = { Enable = true }Verify the player owns a rat -- the notification
"You do not own a rat"indicates no rat has been purchased.Rat may be injured or on expedition -- an injured or deployed rat cannot follow. Check the rat menu for status.
Distance limit -- if the rat gets too far from the player, it automatically returns home. The notification
"Your rat got too far away and has returned home"confirms this.Anticheat interference -- some anticheat systems block client-side ped creation. Whitelist the rat ped model in your anticheat configuration.
Rat Stuck as Injured
Symptom
The rat shows as injured but the recovery timer does not count down or never completes.
Solutions
Wait the full recovery time -- default is 600 seconds (10 minutes). Check the rat menu for the remaining time display.
Quick Recovery perk -- if the Quick Recovery perk is invested, the timer should be shorter. At level 3, recovery is 30% faster (420 seconds instead of 600).
Database sync issue -- verify the rat's injury state in the database. A corrupted entry can cause it to stay injured. Contact an admin to reset the rat state if needed.
Recycler Not Processing
Symptom
Items are inserted but the recycling process does not start, or the timer does not count down.
Solutions
Check if recycling is enabled:
luaConfig.Recycling.Enable = trueVerify items are inserted -- use the "View Inserted Items" option to confirm items are in the recycler before starting.
Check for finished products -- if a previous cycle's products have not been collected, you cannot start a new cycle. Collect or discard old materials first.
Recycler at capacity -- if
Config.Recycling.RestrictAmount.EnableistrueandAmountis reached, the recycler will not accept more items. Default cap is 50 items.Shared recycler conflict -- if
Config.Recycling.Sharedistrue, another player may have started a cycle or have uncollected materials at that recycler.Check interaction method -- ensure only one interaction method is enabled per location (
enablePed,enableProp, orenableBoxZone).
Minigame Not Triggering
Symptom
Searching dumpsters or camps does not show a minigame/skill check.
Solutions
Check if minigames are enabled for dumpsters:
luaConfig.Minigame.Dumpsters.Enable = trueNote: Camps do not have an
Enabletoggle -- the minigame always runs for camps if configured.Verify the minigame resource is running -- if
Config.Minigame.Dumpsters.Minigameis set to'lib.skillCheck', ensureox_libis started. If usingps-ui,SN-Hacking, etc., ensure that resource is running.Check arguments match the selected minigame -- the
Argstable must contain a matching key for your chosen minigame:luaMinigame = 'lib.skillCheck', Args = { ['lib.skillCheck'] = { {'easy', 'medium', {areaSize = 40, speedMultiplier = 1.2}}, {'w', 'a', 's', 'd'} } }
Needle Prick / Hobo Attack Not Triggering
Symptom
Random events never occur during looting.
Solutions
Check if events are enabled:
luaConfig.Events.NeedlePrick.Enable = true Config.Events.HoboAttack.Enable = trueCheck per-level chance values -- the chance is defined per level in
Config.Levels, not inConfig.Events:luaConfig.Levels[1].NeedlePrickChance = 25 -- 25% at level 1 Config.Levels[1].HoboAttackChance = 15 -- 15% at level 1Cooldown blocking events -- both events have their own cooldowns (
Config.Events.NeedlePrick.CooldownandConfig.Events.HoboAttack.Cooldown, both default 600 seconds). If an event triggered recently, it will not trigger again until the cooldown expires.Low sample size -- at 15-25% chance, it is normal to loot many times without an event. The randomness is working as intended.
TIP
To test events during development, temporarily increase the chance values in Config.Levels to 100 and set the cooldowns to 0.
Locale / Translation Issues
Symptom
Text appears in the wrong language or shows raw locale keys like hobo.king_title.
Solutions
Set the correct locale at the top of
configs/config.lua:luaLocale.LoadLocale('en') -- Options: 'en', 'es', 'de', 'fr', 'ar'Check locale files -- ensure the JSON file for your chosen language exists in the
locales/directory (e.g.,locales/en.json).Missing translation keys -- if you see raw keys, the translation file is missing that entry. Add it manually to the locale JSON file or switch to a fully supported locale.
Locale keys use dot notation -- the JSON structure is flattened. A key like
"hobo.king_title"maps tolocales/en.json->hobo->king_title.
Target System Not Working
Symptom
No interaction options appear on dumpsters, trash cans, the Hobo King, or other interactable objects.
Solutions
Verify a target resource is running -- the script checks for
qb-target,qtarget, orox_targetin that order. At least one must be started.Fallback to TextUI -- if no target resource is found, the script falls back to a built-in TextUI system using
[E]key prompts. This happens automatically but may behave differently from target-based interaction.Check ox_target compatibility -- if using
ox_target, the script maps it internally to theqtargetAPI. Ensure yourox_targetversion supports theqtargetexport compatibility layer.Ensure the target resource starts before sd-dumpsters in your
server.cfg.
