Garry's Mod

Garry's Mod

74 ratings
Weapon discard/manager
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
8.165 KB
25 Sep, 2024 @ 1:14pm
1 Oct, 2024 @ 2:11am
2 Change Notes ( view )

Subscribe to download
Weapon discard/manager

Description
After a month of learning Lua, here is an overhaul of my Right-Click Weapon Removal mod! Made to be more convenient and is now phys-gun friendly!

To discard/give your current weapon, simply right-click while holding the 'e' key

Features
  • An actual custom bind this time
  • No longer lose weapons on death
  • Custom spawn load-out
  • Give, take, and exchange your weapons to any player or npc (and I mean any npc)
  • No more ammo exploits!

As usual, settings are located in the Options tab with the Console Variables shown in the tool-tips!

Update 1.0.1
  • Custom spawn load-out no longer resets after closing the game
21 Comments
Vance 25 Oct, 2024 @ 11:34pm 
Sorry to bug ya.
Is there any way to drop the weapon instead of deleting it?
Andreas 14 Oct, 2024 @ 12:55pm 
what hud are you using?
Smytsidian 5 Oct, 2024 @ 1:53pm 
I was using the HL1 sweps mod and a loadout mod at the same time. Whenever I respawn I only get my grenades
Phoque Eughe  [author] 5 Oct, 2024 @ 1:37pm 
@gamer I've half figured out the problem and will hope to fix it soon. The bad news being that I may need to reshuffle the programming a bit.
Phoque Eughe  [author] 5 Oct, 2024 @ 1:36pm 
@Smytsidian What weapon did you use? From what I can tell, it's likely because the weapon doesn't use primary ammo, or uses that system.
Smytsidian 5 Oct, 2024 @ 9:11am 
[Weapon discard/manager] lua/autorun/sh_wpn.lua:120: attempt to call method 'SetClip1' (a nil value)
1. v - lua/autorun/sh_wpn.lua:120
2. Call - lua/includes/modules/hook.lua:96
3. PlayerSpawn - gamemodes/base/gamemode/player.lua:246
4. unknown - gamemodes/sandbox/gamemode/init.lua:41
5. Spawn - [C]:-1
6. unknown - gamemodes/base/gamemode/player.lua:101

What's this about?
Phoque Eughe  [author] 3 Oct, 2024 @ 2:46pm 
@gamer, I'll be having a look at this addon in the weekend as I assume it might be something to do with a hook not working as intended
Deca The Bard 3 Oct, 2024 @ 2:18pm 
for some reason, the addon just refused to remove my weapon even after pressing the bind repeatedly. I have it set to R + RMB, and sometimes i have to click it over and over and over again until it finally removes my weapon, or it just does it instantly
Phoque Eughe  [author] 3 Oct, 2024 @ 1:06am 
@CoolioTrainGamer #Chillin, what are your current settings?
A Very Unauthorized Thing 2 Oct, 2024 @ 6:44pm 
The mod is bugging out and removes most of my weapons after death