Garry's Mod

Garry's Mod

评价数不足
Simple Trash Collection System (DarkRP)
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 实体
插件标签: 快乐, 角色扮演
文件大小
发表于
15.834 KB
2022 年 8 月 30 日 下午 12:43
1 项改动说明 ( 查看 )

订阅以下载
Simple Trash Collection System (DarkRP)

在 ThatCatGuy 的 1 个合集中
Simple Collection DarkRP
9 件物品
描述
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀
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 条留言
shadowmig_br 2024 年 11 月 15 日 上午 9:07 
Already better than the GMod store counter part. Doesn't have 1000000 polygon models to put everyone's FPS down.
Sgt Craig 2024 年 7 月 26 日 下午 8:21 
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.
Goon 2024 年 6 月 19 日 上午 9:11 
thanks
ThatCatGuy  [作者] 2024 年 6 月 19 日 上午 5:53 
On the default F4 menu of DarkRP gamemode you can select Hobo.
Goon 2024 年 6 月 19 日 上午 5:43 
how do i change to hobo?
Grumen 2023 年 12 月 23 日 上午 12:46 
Good job =)
ThatCatGuy  [作者] 2023 年 9 月 9 日 上午 2:23 
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 2023 年 9 月 8 日 下午 11:21 
How do I transfer to another profession, not a hobo?
OGKushKing 2023 年 5 月 7 日 上午 2:01 
good