From Garry's Mod
Revision as of 20:03, 24 June 2019 by Code gs
Called when a player attempts to give themselves a weapon from the Q menu. ( Left mouse clicks on an icon )
The player who attempted to give themselves a weapon.
Class name of the weapon the player tried to give themselves.
Can the SWEP be given to the player
Stops non-admins from giving themselves weapons.
hook.Add( "PlayerGiveSWEP", "BlockPlayerSWEPs", function( ply, class, swep ) if ( not ply:IsAdmin() ) then return false end end )