Player.DrawViewModel

From GMod Wiki

Revision as of 18:58, 11 April 2011 by Ultragamer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:DrawViewModel( Boolean draw )
Description:
Show/Hide the player's weapon view model.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.DrawViewModel]Player.DrawViewModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionHides the player's weapon view model.
Used onNewerServer.png
Code
 
function SWEP:Deploy()
	self.Owner:DrawViewModel(false)
end
 
OutputHides the player's weapon view model.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox