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 line | Cause | Fix |
|---|---|---|
Could not find dependency cc_lib / cc_lib is not started | cc_lib is missing or starts after this script | Install 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 inventory | Add it from install/items/, or replace it in server/config.lua |
refusing every player request until the config above is fixed | A table in a config file is missing or the wrong type | The line above it names the table. Fix it, or restore it from the download |
ServerConfig.X = ... is outside a..b | A value is out of its safe range | Put it back in range. The script keeps running with the value |
Config.Preset "x" has no presets/x.lua; using defaults | The preset name has no matching file | Create presets/x.lua, or set Config.Preset = 'default' |
ox_inventory still puts loot in dumpsters (inventory:dumpsterloot) | ox gives its own loot from every dumpster | setr inventory:dumpsterloot [] in server.cfg |
oxmysql not running -- scavenger stats are kept in resource KVP | oxmysql is not running | Nothing to fix. Stats still save. Install oxmysql if you want them in MySQL |
addModel is not supported by the native fallback | No target script is running | Nothing to fix. The script uses its own [E] prompt instead |
database migration failed (...) -- stats fall back to resource KVP until fixed | The database user cannot create or alter tables | Run sql/install.sql by hand, or give the user CREATE and ALTER rights |
F8 console (client)
| F8 line | Cause | Fix |
|---|---|---|
SCRIPT ERROR: @cc_dumpster/...: attempt to index a nil value (global 'CC') | cc_lib did not load first | Start cc_lib before this script. Do not remove @cc_lib/init.lua from the manifest |
The panel shows search.picked or other dotted keys | A locale file is not being sent to clients | Keep locales/*.json in files {} in fxmanifest.lua. Check that cc_dumpster_locale names a file that exists |
| Item images are missing in the find card | Your inventory has no image for the item | Add <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 renamed | Keep the folder name cc_dumpster |
In game
| What you see | Cause | Fix |
|---|---|---|
| No "Dig through the dumpster" option | No target script, so the prompt is used | Walk right up to the dumpster and look for the [E] prompt. Force it with Config.Interaction = 'prompt' |
| Two "search" options on one dumpster | Another dumpster script is running | Stop the other script (see Compatibility) |
| "Picked clean" on a dumpster nobody touched | A dumpster within 1.6 m was searched | That 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 searches | Working as intended |
| "You've turned over every bin for blocks." | The player opened 60 brand-new spots this hour | Working 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 nothing | The hourly cash cap is reached, or the item is not in Recycler.buys | Check Recycler.hourlyCap and Recycler.buys |
| The search bar finishes but nothing happens | The player moved away or the bar was sped up | The 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 standalone | Set your police job names and minimum grades |
| A hidden player stays invisible after a crash | Not possible from a resource restart: every hider is put out on stop | If a client crashed while hidden, the player reconnects visible. Use exports.cc_dumpster:forceOut(src) if a script needs to |
| Stats reset after a restart | oxmysql is not running, so stats are in KVP, and the server's KVP folder was wiped | Install oxmysql |
Security log
Every refused or suspicious request goes to the security log channel with a reason:
| Reason | Meaning |
|---|---|
search_reach | The claimed dumpster was more than Guard.reach from where the server sees the player |
search_model | The model sent is not a dumpster or bin in Config.Kinds |
search_too_fast | Finished faster than the time floor |
search_bad_ticket | A replayed or forged search ticket |
search_hardcap | Hit the hourly hard cap |
search_new_spots | Opened too many brand-new spots in an hour |
search_density | Too 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:
- The full server console from
ensure cc_dumpsterdown to the error. - The F8 lines if the problem is on the client.
- Your framework, inventory and target script, with versions.
- The
cc_libstartup line (it lists everything it detected).