• Disable default scoreboard
    5 replies, posted
I've been making a gamemode and I am now on the scoreboard, one of the hardest tasks IMO. I tried making a blank scoreboard with a clientside file containing nothing except [CODE]function GM:ScoreboardShow() end function GM:ScoreboardHide() end function GM:HUDDrawScoreBoard() end[/CODE] But the base scoreboard still appears, how do I disable it?
This [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index7673.html"]older[/URL] wiki says to return true to prevent it from being drawn; assuming it is drawn using this.
Overriding those hooks should work just fine, make sure those hooks are defined clientside. Where exactly have you put that code into?
[QUOTE=Robotboy655;45499403]Overriding those hooks should work just fine, make sure those hooks are defined clientside. Where exactly have you put that code into?[/QUOTE] It's in a lua file called cl_gwarscoreboard.lua in the cl_init.lua I have [CODE]include("cl_gwarscoreboard.lua")[/CODE] By asking me that though, you got me to double check my files and before I had [CODE]include("cl_gwarspawnmenu.lua")[/CODE] Which is a non existant file. I must have been sleepy last night Thanks internet strangers!
Make sure to have AddCSLuaFile("cl_gwarscoreboard.lua") in a serverside file.
[QUOTE=Robotboy655;45499649]Make sure to have AddCSLuaFile("cl_gwarscoreboard.lua") in a serverside file.[/QUOTE] Alright, thank you for the reminder!
Sorry, you need to Log In to post a reply to this thread.