CreateClientConVar("chat_tags_color_r", 255, true, false) CreateClientConVar("chat_tags_color_g", 255, true, false) CreateClientConVar("chat_tags_color_b", 255, true, false) CreateClientConVar("chat_tags_color_a", 255, true, false) local Tags = { --Group --Tag --Color {"", "User | ", Color(255, 255, 255, 255) }, {"", "Trusted | ", Color(0, 229, 198, 255) }, {"", "Trial Moderator | ", Color(0, 187, 255, 255) }, {"", "Administrator | ", Color(221, 0, 0, 255) }, {"", "The Man | ", Color(255, 123, 0, 255) }, {"", "Moderator | ", Color(161, 0, 255, 255) } } hook.Add("OnPlayerChat", "Tags", function(ply, strText, bTeamOnly) if IsValid(ply) and ply:IsPlayer() then for k,v in pairs(Tags) do if ply:IsUserGroup(v[1]) then local R = GetConVarNumber("chat_tags_color_r") local G = GetConVarNumber("chat_tags_color_g") local B = GetConVarNumber("chat_tags_color_b") local A = GetConVarNumber("chat_tags_color_a") local nickteam = team.GetColor(ply:Team()) if !bTeamOnly then chat.AddText(v[3], v[2], nickteam, ply:Nick(), color_white, ": ", Color(R, G, B, A), strText) return true else chat.AddText(v[3], v[2], nickteam, "(TEAM) ", ply:Nick(), color_white, ": ", Color(R, G, B, A), strText) return true end end end end if !IsValid(ply) and !ply:IsPlayer() then local ConsoleColor = Color(165, 0, 118) --Change this to change Console name color chat.AddText(ConsoleColor, "Jesus Christ", color_white, ": ", strText) return true end end )