GM/ScoreboardShow

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Once again, this is hook does not have a return value, the return value effect is an effect of the hook library.)
 
Line 1: Line 1:
 
{{Hook
 
{{Hook
 
|Description=Called when player presses the scoreboard button. ( TAB by default )
 
|Description=Called when player presses the scoreboard button. ( TAB by default )
 +
<!--NOTE: DO NOT ADD A RETURN VALUE TO THIS FUNCTION! IT DOES NOT HAVE A RETURN VALUE.
 +
RETURNING ANYTHING TO HIDE THE DEFAULT SCOREBOARD IS A SIDE EFFECT OF HOW THE HOOK LIBRARY WORKS.
 +
THAT EFFECT WILL NOT BE CONSISTENT BETWEEN GAMEMODES/ADDON COMBINATIONS-->
 
|Realm=Client
 
|Realm=Client
 
|Predicted=No
 
|Predicted=No
 
|Name=ScoreboardShow
 
|Name=ScoreboardShow
 
|Parent=GM
 
|Parent=GM
}}
 
{{Example
 
|Description=Hides the default scoreboard.
 
|Code=function hideScoreboard()
 
    return true
 
end
 
hook.Add( "ScoreboardShow", "HideScoreboard", hideScoreboard )
 
 
}}
 
}}

Latest revision as of 21:38, 4 September 2015

 GM:ScoreboardShow( )

Description

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

Personal tools
Navigation