[FREE] Persistent dumpsters | gp_garbage

gp_garbage

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.

:arrow_right_hook: DOWNLOAD

Features

  • Interactive dumpsters: Players can interact with dumpster entities and throw away items.
  • Persistent dumpsters: Items that have been thrown into the dumpster are saved in the database.
  • ox_inventory integration: For a clean and player-friendly stash system.
  • ox_target integration: To interact with the dumpster.
  • Customizable: Config file to tweak dumpster volume and slots to your liking.
  • Optimized: Minimal CPU usage (<=0.01ms).

Requirements

Video Showcase

Video

Pictures

gp_garbage1
gp_garbage2

Installation

  • Add to resources folder
  • Add ensure gp_garbage to your config file

Discord

Join now!

6 Likes

what is the difference between the original ox garbage?

1 Like

simple but cool =)

1 Like

To my knowledge, they are not persistent. But please correct me if I’m wrong.

nice script bro can you add option if you through it in the trash it will disappear

1 Like

Going by your code, if they move a dumpster from it’s spawn coords then it will open a different inventory.

1 Like

Yes I know, I did not come up with another solution other than to use coordinates.

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:

2 Likes

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

1 Like

will this basically save what youve tossed into the trash?

1 Like

Yes, it will.