Garry's Mod

Garry's Mod

评价数不足
Simple Laundry (DarkRP)
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 实体
插件标签: 快乐, 角色扮演
文件大小
发表于
31.040 KB
2023 年 5 月 13 日 下午 6:20
1 项改动说明 ( 查看 )

订阅以下载
Simple Laundry (DarkRP)

在 ThatCatGuy 的 1 个合集中
Simple Collection DarkRP
9 件物品
描述

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀
Simple Laundry (DarkRP)

This is an update / rewrite to an older addon made by Blue https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2568913240.
Any bugs please comment and I will fix them ASAP.


Extra Info

  • This is for the Citizen job by default, but can be set to all jobs with a console command: simplelaundry_alljobs 1.


How to configure

    NPC Config

  • You can spawn the laundry entities from the Q menu.
  • You can save the entity locations on the current map by using console command simplelaundry_saveents.
  • You can remove the laundry entities locations on the current map by using console command simplelaundry_removeents this will prevent them spawning on the next restart..
  • You can respawn the laundry entities locations on the current map by using console command simplelaundry_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.

    Laundry Config

  • You can set the washing time by setting simplelaundry_washingtime xxx in your server console. (Default = 20 seconds)
  • You can set the sell price of the laundry by setting simplelaundry_sellprice xxx in your server console. (Default = 150 per item)
  • You can set the drying time by setting simplelaundry_dryingtime xxx in your server console. (Default = 10 seconds)
  • You can set the maximum finished laundry per basket by setting simplelaundry_maxlaundry xxx in your server console. (Default = 10 items per basket)
  • You can set the auto removal time for the laundry by setting simplelaundry_removetime xxx in your server console this will stop too many entities being spawned in at once and will remove once its been spawned in for the set time. (Default = 45 seconds from spawning)


How to spawn

  • They can be spawn from the Q menu by an superadmin and saved with console commands above.


GitHub Download

22 条留言
Blue 1 月 13 日 下午 7:31 
Ah that makes sense! Thanks for the clarification 🙂.
Appreciate it, although I'm just happy to see it get picked up by somebody!
ThatCatGuy  [作者] 1 月 9 日 下午 4:24 
Sorry I got my wires crossed I was sent client files but I was linked to your add on the one I worked on was slightly more progressed than your original one one since yours was the base it was all built from that so that’s why you got the shoutout the concept was yours I just improved it and made it more easily applied and implemented. Thanks for the great work you did.
Blue 1 月 6 日 下午 11:42 
I'd like to appreciate you shouting me out on this re-upload! I just accidentally stumbled upon this, noticed it looked oddly familiar, and saw the description. Looks like you've gone much, much further with this project than I did.

For (potentially) interesting context, I originally wrote this in 2020 for a PrisonRP server that never ended up releasing due to budget issues. Sadly, I never got the opportunity to go further with it. Seeing that somebody's picked this up and has gotten some potential use out of it has absolutely made my day :)
ThatCatGuy  [作者] 2024 年 6 月 26 日 下午 4:20 
if you are getting unknown command it means something went wrong when loading the addon. check the server log for errors.
CherryCoffin 2024 年 6 月 26 日 上午 11:56 
And when you try to do the command on your server "simplelaundry_sellprice" it says unknown command. D; Love the mod by the way!
ThatCatGuy  [作者] 2024 年 6 月 25 日 上午 8:49 
will look into it asap
CherryCoffin 2024 年 6 月 24 日 下午 4:33 
On the folded clothes basket the GUI cost it sales for does not update to your new value D;
(TR) General Gnomeᴳᴮ 2024 年 1 月 6 日 上午 10:34 
ok thanks
ThatCatGuy  [作者] 2024 年 1 月 6 日 上午 9:56 
you dont need to add (Çamaşırcı) between the brackets

ply:Team() != TEAM_ÇAMAŞIRCI

restart server after
(TR) General Gnomeᴳᴮ 2024 年 1 月 6 日 上午 9:50 
dont work

function SimpleLaundryTeam(ply)
if ply:Team(Çamaşırcı) != TEAM_ÇAMAŞIRCI and !simplelaundry_alljobs:GetBool() then
Notify(ply, "Incorrect Job you must be a citizen!")
return true
else
return false