GM/ScoreboardShow

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added info about hiding the default scoreboard by returning a bool. After testing, it turns out you can return anything and it'll still hide it.. I've set it as bool because it sounds more logical)
(Once again, this is hook does not have a return value, the return value effect is an effect of the hook library.)
Line 5: Line 5:
 
|Name=ScoreboardShow
 
|Name=ScoreboardShow
 
|Parent=GM
 
|Parent=GM
}}
 
{{Ret
 
|type=boolean
 
|desc=Return true to hide the default scoreboard
 
 
}}
 
}}
 
{{Example
 
{{Example

Revision as of 21:35, 4 September 2015

 GM:ScoreboardShow( )

Description

Called when player presses the scoreboard button. ( TAB by default )

Examples

Example

Hides the default scoreboard.

function hideScoreboard()
    return true
end
hook.Add( "ScoreboardShow", "HideScoreboard", hideScoreboard )


Personal tools
Navigation