Garry's Mod

Garry's Mod

197 个评价
Clear Inventory Command
5
3
   
奖励
收藏
已收藏
取消收藏
Content Type: Addon
Addon Type: Tool
Addon Tags: Build
文件大小
发表于
更新日期
1.527 KB
2016 年 4 月 9 日 上午 3:30
2022 年 9 月 25 日 上午 8:40
4 项改动说明 ( 查看 )

订阅以下载
Clear Inventory Command

描述
This is a little addon for Garry's Mod that will add a command 'clear_inv', 'clear_inv_non_essential' and 'clear_current_weapon' that when executed in the console will wipe you inventory.

Commands:
'clear_inv' - Will clear the whole inventory
'clear_inv_non_essential' - Will clear every weapon other than the Physics gun and Tool gun.
'clear_current_weapon' - Will clear the current weapon the player is holding.

These commands can also be bound to your keyboard, e.g 'bind KP_MULTIPLY <command>', upon pressing the key (e.g 'KP_MULTIPLY') it will execute this command. For a list of keys you can view valves docs: https://developer.valvesoftware.com/wiki/Bind

This addon is really for personal and was my attempt at getting into lua but as a programmer and a member of the community I wanted to share this with you in case anyone finds it useful.

As a side note, this addon was created in 2016 and I didn't expect anyone to use it, this is a feature from the comments but i'm glad after 4+ years the code still hangs in there.

Thanks for viewing :)
37 条留言
Dum_Potat 7 月 17 日 上午 9:15 
Heck yeah! Very nice addon
( λ ) Hidden 1 月 27 日 下午 3:01 
Can you add an option to strip ammo too?
DZshot 1 月 4 日 上午 6:36 
Can it be able to clear other players' inventory as you are the host?
J 2023 年 12 月 28 日 上午 3:40 
God bless you
Wide Claude 2023 年 10 月 4 日 下午 9:25 
You're a lifesaver ong
WesleyPlaysGames 2023 年 4 月 18 日 上午 1:51 
godspeed you are a lifesaviour
pioloon 2023 年 3 月 30 日 上午 8:59 
just what I needed
TotoReste 2023 年 2 月 10 日 上午 2:26 
this is what i am searching for thank you!
Pikasatupu75 2022 年 9 月 25 日 上午 8:52 
You are a godsend
ThatsOurJake  [作者] 2022 年 9 月 25 日 上午 8:42 
Now able to clear the current players weapon :lunar2019piginablanket: