Garry's Mod Wiki

Garry's Mod Wiki

  Player:StripWeapon( string weapon )

Description

Removes the specified weapon class from a certain player

this function will call the Entity:OnRemove but if you try use Entity:GetOwner it will return nil

Arguments

1 string weapon
The weapon class to remove

Example

Removes the crowbar from the player with the ID 1

Entity( 1 ):StripWeapon( "weapon_crowbar" )
Output: Crowbar removed from player 1

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...