Gamemode.PrePlayerDraw
From GMod Wiki
| Event Hook | |
| Hook Name | PrePlayerDraw |
| Syntax | GM:PrePlayerDraw( Entity player ) |
| Description | This is called before the player is drawn. |
| Returns | Nil |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PrePlayerDraw]Gamemode.PrePlayerDraw [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Print a message before the player is drawn. |
|---|---|
| Used on | |
| Code | hook.Add("PrePlayerDraw", "test", function(ply) print(ply) end) |
| Output | N/A |
Additional Notes
- Returning true will prevent them from being drawn