Gamemode.ShowSpare2
From GMod Wiki
| Event Hook | |
| Hook Name | ShowSpare2 |
| Syntax | GM:ShowSpare2( Player Player ) |
| Description | Called when the player presses their (by default) F4 key. |
| Returns | Nil |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.ShowSpare2]Gamemode.ShowSpare2 [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Shows the help dialogue. |
|---|---|
| Used on | |
| Code | function SchoolShow( ply ) ply:ConCommand( "SchoolMe" ) end hook.Add("ShowSpare2", "School", SchoolShow) |
| Output | N/A |
See Also