LUA Color Codes?

Hello, this is part of my sb_row.lua file


  if ply:IsUserGroup("owner") then
self.cols[5]:SetText("Owner")
self.cols[5]:SetTextColor(Color(252,192,13,252))
end
 
   if ply:IsUserGroup("staff1") then
self.cols[5]:SetText("Manager")
self.cols[5]:SetTextColor(Color(252,192,13,252))
end

   if ply:IsUserGroup("superadmin") then
self.cols[5]:SetText("Super Admin")
self.cols[5]:SetTextColor(Color(0,239,255,255))
end
 
   if ply:IsUserGroup("admin") then
self.cols[5]:SetText("Admin")
self.cols[5]:SetTextColor(Color(0,239,255,255))
end
 
   if ply:IsUserGroup("trusted") then
self.cols[5]:SetText("Trusted")
self.cols[5]:SetTextColor(Color(0,239,255,255))
end
 
   if ply:IsUserGroup("member") then
self.cols[5]:SetText("Member")
self.cols[5]:SetTextColor(Color(0,239,255,255))
end
 
   if ply:IsUserGroup("user") then
self.cols[5]:SetText("Guest")
self.cols[5]:SetTextColor(Color(0,239,255,255))
end
 
   if ply:IsUserGroup("donator") then
self.cols[5]:SetText("Donator")
self.cols[5]:SetTextColor(Color(0,41,229,172))
end

I don’t know what that color code is. Could someone tell me what it is so I can correctly color my ranks.

It’s RGBA color codes.
Link to a generator: http://www.colorschemer.com/online.html

Ok, so it’s Red Green Blue, but what’s the A because on that generator there’s no A.

Alpha. 255 = no transparency, 0 = completely transparent.

A is Alpha/Transparency.

RGBA: Red, Green, Blue, Alpha. Alpha is the transparency so:
0 = Invisble. 255 = The most seeable.
You can really just Google this kind of stuff. No need for a topic.

So the 4th number is Transparency, I’m guessing 0 is completely visible?

EDIT Didn’t notice the above post.

-snip-

:smile:

ms333, long time no see. I remember your helpfulness when I was first starting lua with a darkrp server, without your help I wouldn’t have been able to get enough skill to make my own gamemode. Thanks.