Garry's Mod

Garry's Mod

Not enough ratings
Simple Trash Collection System (DarkRP)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Entity
Addon Tags: Fun, Roleplay
File Size
Posted
15.834 KB
30 Aug, 2022 @ 12:43pm
1 Change Note ( view )

Subscribe to download
Simple Trash Collection System (DarkRP)

In 1 collection by ThatCatGuy
Simple Collection DarkRP
9 items
Description
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀
Simple Trash Collection System(DarkRP)

This is a nice little basic trash collection system with an dumpster, trashcan and trash buyer NPC. This is set by default to the Hobo job.

Any bugs please comment and I will fix them ASAP.


Extra Info

  • This is for the Hobo only by default.
  • You can check you current trash you are holding by typing in the chat box either /trash or !trash this will then tell you in chat how much if any you have on you.
  • The trash has a min and max and gives a random amount between them.


How to configure

    Entity Config

  • You can spawn the ents in on the Q menu then save them as explained below.
  • You can save the trash ent locations on the current map by using console command simpletrash_saveents.
  • You can remove the trash ent locations on the current map by using console command simpletrash_removeents this will prevent them spawning on the next restart..
  • You can respawn the trash ent locations on the current map by using console command simpletrash_respawnents this is handy if you just saved them or updated the saves it will remove them from the map and reload from the file so if you move one by mistake then use the respawn command and it will fix its position.


    AddonConfig

  • You can set the min amount of trash you collect by setting simpletrash_amountmin xxx in your server console. **(Default = 1 piece of trash)**
  • You can set the min amount of trash you collect by setting simpletrash_amountmax xxx in your server console. **(Default = 5 pieces of trash)**
  • You can set the min amount of cooldown by setting simpletrash_cooldownmin xxx in your server console. **(Default = 60 seconds)**
  • You can set the min amount of cooldown by setting simpletrash_cooldownmax xxx in your server console. **(Default = 120 seconds)**
  • You can set the sell price of the trash by setting simpletrash_sellprice xxx in your server console. **(Default = 200 per piece of trash)**


How to spawn

  • Change to Hobo then go around the map pressing E (Use) on the trash cans and dumpsters and once you have collected some trash press E (Use) on the buyer to sell for some money.


GitHub Download

9 Comments
shadowmig_br 15 Nov, 2024 @ 9:07am 
Already better than the GMod store counter part. Doesn't have 1000000 polygon models to put everyone's FPS down.
Sgt Craig 26 Jul, 2024 @ 8:21pm 
I'm attempting to make a series of addons, using your stuff as a template, for more of a single player/small coop feel to gmod. I enjoy just hopping on every once in a while and like this kind of stuff. I've done basic stuff like add guys that just stand there. Have simple dialogue just like your weed buyer and chocolate buyer, but I'd like to make a more advanced system so a player could interact and actually buy things such as guns, lockpicks or other things. My goal would be to have enough things so I could populate the map with NPCs so a single person could theoretically play DarkRp by themselves. If you know any good ways to figure out how to do this on my own or if you know a way already, I'd greatly appreciate any knowledge.
Trotwil 19 Jun, 2024 @ 9:11am 
thanks
ThatCatGuy  [author] 19 Jun, 2024 @ 5:53am 
On the default F4 menu of DarkRP gamemode you can select Hobo.
Trotwil 19 Jun, 2024 @ 5:43am 
how do i change to hobo?
Grumen 23 Dec, 2023 @ 12:46am 
Good job =)
ThatCatGuy  [author] 9 Sep, 2023 @ 2:23am 
At the moment you have to edit the entities init.lua and add another job or replace the job in the

local SimpleTrashRandomJobs = {"Hobo"}

This is in all entities so you can change them for different ents like hobos for trash cans and Citizen for dumpsters etc. you will need to download it from GitHub for this and you just add the files you want to change to the server
biirhdy 8 Sep, 2023 @ 11:21pm 
How do I transfer to another profession, not a hobo?
tactical timmy 7 May, 2023 @ 2:01am 
good