Player.StripWeapons

From GMod Wiki

Revision as of 14:37, 10 June 2011 by (#>) Mwr247 (Mike) (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:StripWeapons( )
Description:
Removes all the player's weapons.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.StripWeapons]Player.StripWeapons [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAll players have their weapons removed.
Used onNewerServer.png
Code
for k, v in pairs( player.GetAll() ) do
     v:StripWeapons()
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox