I need to figure out how to override any default gamemode scoreboards with my custom scoreboard. (It's an addon)
[lua]
function ScoreboardShow()
GAMEMODE.ShowScoreboard = true
gui.EnableScreenClicker( false )
end
hook.Add( "ScoreboardShow", "Show", ScoreboardShow )
function ScoreboardHide()
GAMEMODE.ShowScoreboard = false
end
hook.Add( "ScoreboardHide", "Hide", ScoreboardHide )
function HUDDrawScoreBoard()
if not GAMEMODE.ShowScoreboard then return end
CODEISHERE
end
end
hook.Add( "HUDDrawScoreBoard", "Draw", HUDDrawScoreBoard )
[/lua]
[IMG]http://i25.tinypic.com/2wq69tc.jpg[/IMG]
Yes, the mini scoreboard opens with Tab.
override the gamemode functions like ScoreboardShow etc
How?
ScoreboardShow()
In this function try returning true or false ( trial and error )
Willox, No
[lua]function GAMEMODE:ScoreboardShow()
-- do your scoreboard
return true
end[/lua]
K, I'll try this stuff when I wake up. Going to bed.
Sorry, you need to Log In to post a reply to this thread.