Player.StripWeapon

From GMod Wiki

Revision as of 21:57, 17 September 2009 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:StripWeapon( String Weapon Class )
Description:
Removes the specified weapon class from a certain player
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.StripWeapon]Player.StripWeapon [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionRemoves the crowbar from the player with the ID 1
Used onNewerServer.png
Code
player.GetByID( 1 ):StripWeapon("weapon_crowbar")
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox