Skip to content

Troubleshooting

Start with the server console on boot. The script prints cc_dumpster config OK, or one line for each problem it found. Most problems below are named there.

Start with the server console on boot. The script prints cc_dumpster config OK, or one line for each problem it found. Most problems below are named there.

Server console

Console lineCauseFix
Could not find dependency cc_lib / cc_lib is not startedcc_lib is missing or starts after this scriptInstall cc_lib and put ensure cc_lib above ensure cc_dumpster
item "x" is not defined in your inventory -- see install/items/A loot, shop or config item does not exist in your inventoryAdd it from install/items/, or replace it in server/config.lua
refusing every player request until the config above is fixedA table in a config file is missing or the wrong typeThe line above it names the table. Fix it, or restore it from the download
ServerConfig.X = ... is outside a..bA value is out of its safe rangePut it back in range. The script keeps running with the value
Config.Preset "x" has no presets/x.lua; using defaultsThe preset name has no matching fileCreate presets/x.lua, or set Config.Preset = 'default'
ox_inventory still puts loot in dumpsters (inventory:dumpsterloot)ox gives its own loot from every dumpstersetr inventory:dumpsterloot [] in server.cfg
oxmysql not running -- scavenger stats are kept in resource KVPoxmysql is not runningNothing to fix. Stats still save. Install oxmysql if you want them in MySQL
addModel is not supported by the native fallbackNo target script is runningNothing to fix. The script uses its own [E] prompt instead
database migration failed (...) -- stats fall back to resource KVP until fixedThe database user cannot create or alter tablesRun sql/install.sql by hand, or give the user CREATE and ALTER rights

F8 console (client)

F8 lineCauseFix
SCRIPT ERROR: @cc_dumpster/...: attempt to index a nil value (global 'CC')cc_lib did not load firstStart cc_lib before this script. Do not remove @cc_lib/init.lua from the manifest
The panel shows search.picked or other dotted keysA locale file is not being sent to clientsKeep locales/*.json in files {} in fxmanifest.lua. Check that cc_dumpster_locale names a file that exists
Item images are missing in the find cardYour inventory has no image for the itemAdd <item>.png to your inventory's image folder. The two custom items load their own icons
Failed to load nui://cc_dumpster/...The folder was renamedKeep the folder name cc_dumpster

In game

What you seeCauseFix
No "Dig through the dumpster" optionNo target script, so the prompt is usedWalk right up to the dumpster and look for the [E] prompt. Force it with Config.Interaction = 'prompt'
Two "search" options on one dumpsterAnother dumpster script is runningStop the other script (see Compatibility)
"Picked clean" on a dumpster nobody touchedA dumpster within 1.6 m was searchedThat is the merge radius at work. It stops coordinate tricks. Two dumpsters side by side are counted separately
"Catch your breath first."The 2.5 s cooldown between searchesWorking as intended
"You've turned over every bin for blocks."The player opened 60 brand-new spots this hourWorking as intended. Raise Guard.newSpotsPerHour if your players really search that fast
"You've been at it for hours."The hourly hard cap (90)Working as intended. Raise Guard.hardCapPerHour with care
The recycler pays nothingThe hourly cash cap is reached, or the item is not in Recycler.buysCheck Recycler.hourlyCap and Recycler.buys
The search bar finishes but nothing happensThe player moved away or the bar was sped upThe server refuses finishes that are too early or too far away. Check the security log
Nobody can "Check inside"No police job matches Config.Police.jobs, or the server is standaloneSet your police job names and minimum grades
A hidden player stays invisible after a crashNot possible from a resource restart: every hider is put out on stopIf a client crashed while hidden, the player reconnects visible. Use exports.cc_dumpster:forceOut(src) if a script needs to
Stats reset after a restartoxmysql is not running, so stats are in KVP, and the server's KVP folder was wipedInstall oxmysql

Security log

Every refused or suspicious request goes to the security log channel with a reason:

ReasonMeaning
search_reachThe claimed dumpster was more than Guard.reach from where the server sees the player
search_modelThe model sent is not a dumpster or bin in Config.Kinds
search_too_fastFinished faster than the time floor
search_bad_ticketA replayed or forged search ticket
search_hardcapHit the hourly hard cap
search_new_spotsOpened too many brand-new spots in an hour
search_densityToo many of the player's own picks in one small area

One flag can be lag or a desync. Many flags from the same player are worth a look.

Still stuck?

Open a ticket in the Code Cartel Discord with:

  1. The full server console from ensure cc_dumpster down to the error.
  2. The F8 lines if the problem is on the client.
  3. Your framework, inventory and target script, with versions.
  4. The cc_lib startup line (it lists everything it detected).