Hey guys, so the problem is, it doesn't set the occupation as 'Officer' or 'Staff' or 'Civillian'
exports [ "scoreboard" ]:addScoreboardColumn ( "Occupation", 2 )
function thatit()
if ( source ~= false) then
local sourceTeam = getTeamName ( getPlayerTeam(source) )
if ( sourceTeam == "Police" ) then
setElementData ( source, "Occupation", "Officer" )
elseif ( sourceTeam == "Staff" ) then
setElementData ( source, "Occupation", "Staff" )
else
setElementData ( source, "Occupation", "Civillian" )
end
end
end
setTimer ( thatit, 2500, 0 )