Player.DrawViewModel
From GMod Wiki
| Function | |
| Syntax | Player:DrawViewModel( Boolean draw ) |
| Description: | |
| Show/Hide the player's weapon view model. | |
| Returns: | nil |
| In Object: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.DrawViewModel]Player.DrawViewModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Hides the player's weapon view model. |
|---|---|
| Used on | |
| Code | function SWEP:Deploy() self.Owner:DrawViewModel(false) end |
| Output | Hides the player's weapon view model. |
Additional Notes
- A return must not be in the deploy function in a scripted weapon in order for DrawViewModel to work inside the scripted weapon's deploy function.