Jump to content

Resource:Scoreboard is really thin


Yazir

Recommended Posts

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 )

2ed1c8a160c115ed96bd99da317bbddd.png

Here is how it looks in game.

Edited by Yazir
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...