Player.DropNamedWeapon

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:DropNamedWeapon( String weapon_class )
Description:
Forces a player to drop a specific weapon.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.DropNamedWeapon]Player.DropNamedWeapon [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDrop the phys gun
Used onNewerServer.png
Code
function DropPhysGun(ply)
 
          ply:DropNamedWeapon("weapon_physgun")
 
end
concommand.Add("dropphys", DropPhysGun)
 
OutputN/A


Additional notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox