gp_garbage is a simple script that lets you access every dumpster on the GTA5 map to throw away items. The items will remain in the dumpsters, even after a server restart.
That is the point of my script tho, so that the items stay in the dumpsters. If you are looking for a script with temporary dumpsters, somebody has already made this:
rather than saving to database and fetch it every player interact it,
it could be solved if just add 1 validation to original ox_inventory script,
just modify ox_inventory/modules/inventory/server.lua
at function Inventory.Remove
just add a validation of if inv.type ~= 'dumpster' then Inventories[inv.id] = nil end