Yazir Posted February 2, 2017 Share Posted February 2, 2017 (edited) Hello! I have a problem with Scoreboard resource. It has been working but the next day I've check it just broke and I don't know why. There's the code (it's clientside). I've removed most of the scoreboard coluns for the sake of testing but it won't work anyway. There's no errors in debug. local players = getElementsByType( "player" ) function setScoreboard( ) call ( getResourceFromName( "scoreboard" ), "scoreboardResetColumns") call ( getResourceFromName( "scoreboard" ), "scoreboardAddColumn", "test", 70, "tetsefeas") --call ( getResourceFromName( "scoreboard" ), "scoreboardAddColumn", "murders", 70, "Player kills", 12) --call ( getResourceFromName( "scoreboard" ), "scoreboardAddColumn", "zombieskilled", 70, "Zombie kills",13) --call ( getResourceFromName( "scoreboard" ), "scoreboardAddColumn", "headshots", 70, "Headshots",15) --call ( getResourceFromName( "scoreboard" ), "scoreboardAddColumn", "daysalive", 70, "Days Alive",16) --call ( getResourceFromName( "scoreboard" ), "scoreboardAddColumn", "totalkills", 70, "Total Frags",14) --call ( getResourceFromName( "scoreboard"), "scoreboardSetColumnPriority", "name", 11) for theKey,thePlayer in ipairs(players) do setElementData( thePlayer, "test", 20 ) end end addEventHandler( "onClientResourceStart", getRootElement( ), setScoreboard ) Here is how it looks in game. Edited February 2, 2017 by Yazir Link to comment
Yazir Posted February 3, 2017 Author Share Posted February 3, 2017 Solved: I've replaced scoreboard with a fresh one - I didn't even look into the scoreboard but it worked . . . Link to comment
Captain Cody Posted February 3, 2017 Share Posted February 3, 2017 (edited) Try exports.scoreboard:scoreboardResetColumns("") and exports.scoreboard:addScoreboardColumn("") Edit : Sorry didn't notice you solved it Edited February 3, 2017 by CodyJ(L) 1 Link to comment
Yazir Posted February 3, 2017 Author Share Posted February 3, 2017 Thanks for the reply anyway + Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now