Gamemode.ShouldDrawLocalPlayer
From GMod Wiki
Event Hook | |
Hook Name | ShouldDrawLocalPlayer |
Syntax | GM:ShouldDrawLocalPlayer( ) |
Description | Return true to draw the local player. (in layman's terms, to draw yourself) |
Returns | Boolean |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.ShouldDrawLocalPlayer]Gamemode.ShouldDrawLocalPlayer [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Draw yourself. |
---|---|
Used on | |
Code | function GM:ShouldDrawLocalPlayer() return true end |
Output | N/A |
Additional Notes
- Usually this is only used for third-person type views (first person causes the head to be rendered right in front of the camera, obstructing the view).