if CLIENT then ulxtttchatextras = {} ulxtttchatextras["superadmin"] = {Color(255, 50, 100, 255), "Owner",} ulxtttchatextras["admin"] = {Color(255, 50, 50, 255), "Admin",} ulxtttchatextras["moderator"] = {Color(0, 100, 255, 255), "Moderator",} ulxtttchatextras["trialmoderator"] = {Color(0, 100, 255, 255), "Trial-Moderator",} ulxtttchatextras["vip"] = {Color(250, 220, 120, 255), "VIP",} ulxtttchatextras["donor"] = {Color(120, 0, 255, 255), "Donor",} ulxtttchatextras["regular"] = {Color(0, 255, 0, 255), "Regular",} ulxtttchatextras["user"] = {Color(255, 255, 0, 255), "Player",} function ulxtttchatextrasaddtochat(ply,text,teamchat,dead) if IsValid(ply) and ply:IsActiveDetective() then local a = Color(0,0,0) local b = "" if ulxtttchatextras[ply:GetUserGroup()] != nil then a = ulxtttchatextras[ply:GetUserGroup()][1] or Color(0,0,0) b = ulxtttchatextras[ply:GetUserGroup()][2] or "" end chat.AddText( a,b, Color(200,200,200), " | ", Color(50, 200, 255), ply:Nick(), Color(255,255,255), ": " .. text ) return true end local tab = {} if ulxtttchatextras[ply:GetUserGroup()] != nil then table.insert(tab,ulxtttchatextras[ply:GetUserGroup()][1]) table.insert(tab,ulxtttchatextras[ply:GetUserGroup()][2]) end if ( dead ) then table.insert( tab, Color( 255, 30, 40 ) ) table.insert( tab, " *DEAD* " ) end if ( teamchat ) then table.insert( tab, Color( 30, 160, 40 ) ) table.insert( tab, " (TEAM) " ) end if ( IsValid( ply ) ) then table.insert( tab, Color( 200, 200, 200 ) ) table.insert( tab, " | " ) table.insert( tab, ply ) else table.insert( tab, "Console" ) end table.insert( tab, Color( 255, 255, 255 ) ) table.insert( tab, ": "..text ) chat.AddText( unpack(tab) ) return true end hook.Add("OnPlayerChat","TTTChatRankColoring",function( ply, text, teamchat, dead ) return ulxtttchatextrasaddtochat(ply,text,teamchat,dead) end) else AddCSLuaFile("gg-tags.lua") end