Discord
Steam
/
Developers
/
How do i make ..
Login/Join
Event Log
How do i make this ulx player name code work for darkrp
1 replies, posted
Search
In This Thread
if SERVER then AddCSLuaFile("scoreboardcolornames.lua") // this is to ensure the client gets the script as scoreboard rendering is done clientside endif CLIENT thenlocalfunction colorName( ply )if ply:IsUserGroup("staff") thenreturn Color(153,0,255) endif ply:IsUserGroup("superadmin") thenreturn Color(255,0,21) endif ply:IsUserGroup("admin") thenreturn Color(232,146,35) endif ply:IsUserGroup("admindonate") thenreturn Color(10,237,245) endif ply:IsUserGroup("mod") thenreturn Color(34,235,23) endif ply:IsUserGroup("moddonate") thenreturn Color(10,237,245) endif ply:IsUserGroup("member") thenreturn Color(0,136,255) endif ply:IsUserGroup("donor") thenreturn Color(10,237,245) endend hook.Add("TTTScoreboardColorForPlayer", "Color Scoreboard Names", colorName) end
Make a custom scoreboard that has a hook similar to TTT's "TTTScoreboardColorForPlayer" hook.
Sorry, you need to
Log In
to post a reply to this thread.