GM:PlayerCanPickupWeapon
Description
Returns whether or not a player is allowed to pick up a weapon.
If this returns false
, Player:Give won't work.
See GM:PlayerCanPickupItem for a hook that affects things like health kits, armor batteries and ammo entities.
Arguments
Returns
Example
Disallows picking up a weapon if player already has this weapon ( prevents ammo pickups from lying guns ).
Example
Players can only pick up the HL2 Pistol.
Example
How you could give a player an alternate weapon to the one they picked up (such as an RPG Launcher rather than a pistol).