Custom

Hey,

Shared file:



local meta = FindMetaTable("Player")
function meta:IsVIP()
	return self.DarkRPVars.vip or self:IsHeadAdmin() or self:IsSuperAdmin() or self:IsRoot()
end


Output self.DarkRPVars.vip → true

Clientside file:



if LocalPlayer():IsVIP() then
	viplbl:SetColor(Color(127, 111, 63, 255))
else
	viplbl:SetTextColor(Color(255, 0, 0, 255))
end


The label’s text color is still red…

Someone has an idea?

Thank you.

you choose color with this and the color is red

viplbl:SetTextColor(Color(Red,Yellow,Blue,Transparency)

How the hell can you fuck up the RGB colour model? Green doesn’t start with ‘Y’, and it doesn’t end with ‘ellow’.

Did you try to run meta:IsVIP() clientside? Just because its in the shared file, doesn’t it mean its shared. Try test them on the client and server.

Also try change SetColor to SetTextColor.