i tryed it and got bad arguements
exports [ "scoreboard" ]:addScoreboardColumn ( "Money", 3 ) -- Add the "Money" column to the scoreboard.
exports [ "scoreboard" ]:addScoreboardColumn ( "TimeAlive", 4 ) -- Add the "Time to the Scoreboard" column to the scoreboard.
local time = {}
local timerInc = setTimer(incTimes,1000,0)
local scoreboardName = "scoreboard" -- scoreboard column name is..
function playerSpawned()
time[source] = 0
end
addEventHandler("onPlayerSpawn",root,playerSpawned)
function incTimes()
for k,v in ipairs(getElementsByType("player")) do
time[v] = time[v] + 1000
setElementData(v,scoreboardName,tostring(time[v] / 600))
end
end