Garry's Mod

Garry's Mod

157 ratings
Can't pick up the same weapons (Now with a whitelist)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
2.208 KB
Jun 29, 2023 @ 4:19pm
Jul 1, 2023 @ 9:31pm
2 Change Notes ( view )

Subscribe to download
Can't pick up the same weapons (Now with a whitelist)

In 7 collections by kuz-(kuz)
GRPD PVP New
170 items
SCP GRPD NEW
121 items
GRPD MIlitary Event
142 items
fasf
93 items
GRPD Zombie Event Butter
102 items
GRPD Half-Life 2 Updated
131 items
GRPD HL2
177 items
Description
Description:
This is a simple addon that adds a hook which restricts the player from picking up the weapon that he already has.
This works with any sort of type of inventory mod.

The whitelist makes the addon don't work with the weapons that are inside that whitelist.

Config file name (kuz_same_weapons_whitelist.txt) You can find it in the data folder

The command to add a weapon to the whitelist: kuz_same_weapons_whitelist_add <any weapon>

The command to remove a weapon from the whitelist: kuz_same_weapons_whitelist_remove <any weapon>



Addon recommendations:

- https://steamcommunity.com/sharedfiles/filedetails/?id=946373028 (Drop Weapon)

- https://steamcommunity.com/sharedfiles/filedetails/?id=2969530350 (Simple Limited Weapon Slots)

Tags: Restrict | hotbar | cant pick up existing weapon mod | realistic | counter strike | css


Other:
My discord: kuz-(kuz)#7427

My discord server: https://discord.gg/83PCYU3gb6
23 Comments
pipboy15112 Jan 18 @ 9:35am 
thanks
Slav Aug 20, 2024 @ 3:22am 
Whats weapon used in gif?
NoobsALot266 Aug 13, 2024 @ 6:08pm 
Im using this so I can spawn the physgun and toolgun in animated scenes without it being picked up
kuz-(kuz)  [author] Sep 6, 2023 @ 10:30am 
It is compatible with vmanip @Vilbys
Bilirubin Sep 2, 2023 @ 11:35am 
Well it's time to make it compatible with VMANIP! 👍🏻
kuz-(kuz)  [author] Sep 1, 2023 @ 3:15pm 
@Pain reliever The code it self looks way too easy. I mean I suck at coding don’t get me wrong. I smashed my keyboard so hard that I had to buy a new one when I coded this one. Then, I basically applied all of my poor knowledge from different lua tutorials on youtube and made this. Thanks for the feedback btw :steamhearteyes:
ich bin meow Sep 1, 2023 @ 2:13pm 
how did you manage to do this, i remember all kinds of devs whining its not possible, great addon!
Bilirubin Aug 17, 2023 @ 5:59am 
Well, it's time to make it compatible with VMANIP! 👍🏻
kuz-(kuz)  [author] Jul 9, 2023 @ 4:38pm 
Thanks!:steamhearteyes: