Skip to content

Dumpster Diving

Every vanilla dumpster and street bin on the map becomes a shared, server-timed search. Pick one clean and it stays empty for everyone until it refills. Players level up as scavengers, dodge needles,

Every vanilla dumpster and street bin on the map becomes a shared, server-timed search. Pick one clean and it stays empty for everyone until it refills. Players level up as scavengers, dodge needles, rats and an angry tramp, sell junk at a recycler, and can hide inside a dumpster while police check the alley.

It runs on Qbox, QBCore, ESX Legacy, ox_core or standalone through cc_lib. It works with the inventory, target, notify, progress, skill-check and dispatch scripts you already run, and it still works when none of them are installed.

Pages

PageWhat it covers
InstallationInstall it in five minutes, add the items, set the permissions
ConfigurationEvery option in config.lua and server/config.lua, plus presets and convars
Exports, hooks and eventsThe API for your own scripts
CompatibilityFrameworks and scripts it works with, and how to override detection
TroubleshootingConsole and F8 errors and how to fix each one
ChangelogWhat changed in each version

Features

FeatureSwitch (Config.Features)
Search 8 dumpster and 38 bin models. There are no props to place and no zones to drawalways on
Shared world: a picked dumpster is empty for every player for 20 to 35 minutesalways on
Five loot tiers, weighted tables, richer and poorer neighbourhoodsareas
Hazards: needlestick, cut, rats, a tramp who attackshazards
Work gloves lower hazard odds and can teargloves
Careful-reach skill check after a searchcareful
Ten scavenger levels with four perksprogression
Recycler ped that buys junk, with an hourly cash caprecycler
The recycler also sells work glovesshop
Lost wallets players can open for cashwallet
Hide inside a dumpster with a peek camera; police can check insidehide
Dispatch alert in watched areasdispatch
/scavenger panel with stats, perks and a top-5 boardpanel, board

How a search works

  1. A player targets a dumpster and picks Dig through the dumpster. The client sends the dumpster's position and model. The server checks that the player is standing there, works out the kind from the model, claims the dumpster and starts its own clock.
  2. A progress bar runs, then an optional skill check. Passing it lowers the hazard odds. It never changes what is found.
  3. The server rolls the finds and gives them through one function. A find card shows what came out, the XP gained and the level bar.
  4. The dumpster is now empty for everyone until it refills.

Security in one paragraph

The server decides everything: position, time, loot and prices. The client sends a position and a model hash, both re-checked, and never an item name or an amount. Each search is a single-use ticket with a time floor. There is a per-player cooldown, a soft and a hard hourly cap, a cap on brand-new spots per hour, a density cap and a merge radius, so coordinate tricks find the same dumpster. Every money path checks capacity first and rolls back on failure. Admin rights come from ACE.