From Garry's Mod
Revision as of 20:04, 24 June 2019 by Code gs
Called when a player attempts to spawn a weapon from the Q menu. ( Mouse wheel clicks on an icon )
The player who attempted to spawn a weapon.
Class name of the weapon the player tried to spawn.
Can the SWEP be spawned
Stops non-admins from spawning weapons.
hook.Add( "PlayerSpawnSWEP", "SpawnBlockSWEP", function( ply, class, info ) if ( not ply:IsAdmin() ) then return false end end )