I'm trying to do a dxDrawText with color codes but I didn't get it plz help me
local text = ""
local drawState = false
function drawText()
local sWidth,sHeight = guiGetScreenSize()
if not drawState then
return
end
dxDrawText(text, sWidth-695-1,sHeight-395,sWidth-615-1,sHeight-366,tocolor(0,0,0,255),1.0,"bankgothic","center","top",false,false,false)
dxDrawText(text, sWidth-695+1,sHeight-395,sWidth-615+1,sHeight-366,tocolor(0,0,0,255),1.0,"bankgothic","center","top",false,false,false)
dxDrawText(text, sWidth-695,sHeight-395-1,sWidth-615,sHeight-366-1,tocolor(0,0,0,255),1.0,"bankgothic","center","top",false,false,false)
dxDrawText(text, sWidth-695,sHeight-395+1,sWidth-615,sHeight-366+1,tocolor(0,0,0,255),1.0,"bankgothic","center","top",false,false,false)
dxDrawText(text, sWidth-695,sHeight-395,sWidth-615,sHeight-366,tocolor(255,255,255,255),1.0,"bankgothic","center","top",false,false,false)
end
addEventHandler("onClientRender", root, drawText)
addEvent("showText",true)
addEventHandler("showText",root,
function (cmd, theText)
if cmd then
drawState = true
text = tostring(theText)
else
drawState = false
end
end
)