There's also a hook for scoreboard name colors:- TTTScoreboardColorForPlayer It's clientside, and you could use it as follows. Put the below in a text filein \garrysmod\lua\autorun\ on the server, called scoreboardcolors.lua: if SERVER then -- when the server loads this script, tell it to send it to clients AddCSLuaFile("scoreboardcolors.lua") else -- when a client runs it, add the hook function MySBColors(ply) if ply:SteamID() == "PUT A STEAMID HERE" then return Color(255, 0, 255) end end hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors) endEdit in a SteamID to test with, of course. Adding more players and changingcolors should be easy from there.
if SERVER then AddCSLuaFile("scoreboardcolors.lua")else function MySBColors(ply) if ply:IsSuperAdmin() or ply:IsAdmin() then return Color(255, 0, 255) end end hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)end
if SERVER then AddCSLuaFile("scoreboardcolors.lua")else function MySBColors(ply) if ply:IsUserGroup("Respected") then return Color(255, 0, 255) <--- i want blue / cyan end end hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)end
Color(108,177,236)
/ip+port/orangebox/garrysmod/lua/autorun/server
if SERVER then AddCSLuaFile("scoreboardcolors.lua")else function MySBColors(ply) if ply:IsUserGroup("Respected") then return Color(108,177,236) end end hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)end
if SERVER then AddCSLuaFile("scoreboardcolors.lua")else function MySBColors(ply) if ply:IsUserGroup("respected") then return Color(108,177,236) end end hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)end
if SERVER then AddCSLuaFile("scoreboardcolors.lua")else function MySBColors(ply) if ply:IsUserGroup("admin") then return Color(255, 204, 0) end if ply:IsUserGroup("donator") then return Color(204, 0, 255) end end hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)end
"respected" { "STEAM_0:0:#######"; "STEAM_0:0:#######"; "STEAM_0:0:#######"; "STEAM_0:1:#######"; "STEAM_0:1:#######"; "STEAM_0:0:#######" }