http://cegui.org.uk/wiki/The_Beginners_ ... II#Imagery
As far as I understand, it works like this:
--tl = Top Left, t = Top, tr = Top Right
--l = Left, bg = Middle, r = Right
--bl = Bottom Left, b = Bottom, br = Bottom Right,
--Usage: HEX Colors without #: AARRGGBB (Alphax2, Redx2, Greenx2, Bluex2)
--Example:
guiSetProperty(image, "ImageColours", "tl:0000FF00 tr:FF00FF00 bl:FF00FF00 br:0000FF00")
So, if you want to use your nametag-colors:
function RGBToHex(red, green, blue, alpha)
if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then
return nil
end
if(alpha) then
return string.format("%.2X%.2X%.2X%.2X", red,green,blue,alpha)
else
return string.format("%.2X%.2X%.2X", red,green,blue)
end
end
local rr, gg, bb,aa = getPlayerNametagColor(g_Me)
local hex = RGBToHex(rr,gg,bb) -- (255, 255, 0, 0) red color
guiSetProperty(player.gui.mapBlip, "ImageColours", "tl:FF"..tostring(hex).." tr:FF"..tostring(hex).." bl:FF"..tostring(hex).." br:FF"..tostring(hex))