Player.DrawWorldModel

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:DrawWorldModel( Boolean draw )
Description:
Show/Hide the player's weapon world model.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.DrawWorldModel]Player.DrawWorldModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

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


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox