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日 15時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日 21時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: