Player/StripWeapon

From Garry's Mod
Jump to: navigation, search
 Player:StripWeapon( )

Contents

Description

Removes the specified weapon class from a certain player

Arguments

string weapon

The weapon class to remove

Examples

Example

Removes the crowbar from the player with the ID 1

player.GetByID( 1 ):StripWeapon("weapon_crowbar")

Output:

Crowbar removed from player 1
Personal tools
Navigation