Player.DrawViewModel

From GMod Wiki

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