if SERVER then
AddCSLuaFile("scoreboardcolors.lua")
else
function MySBColors(ply)
if ply:IsUserGroup("vip") then
return Color(255, 85, 0)
else
if ply:IsUserGroup("operator") then
return Color(0, 255, 237)
else
if ply:IsUserGroup("designer") then
return Color(1, 1, 1)
end
end
end
hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)
end
Without the
else
if ply:IsUserGroup("designer") then
return Color(1, 1, 1)
it works perfectly, but when I add it, it breaks. No errors. I know it's some dumbass error that I'm going facepalm over, but I'm assuming people here will have better luck then me.