El unpack esta bien, pero el setTimer no tiene sentido.
local colores =
{
{ 255, 0, 0 },
{ 0, 255, 0 },
{ 0, 0, 255 },
{ 255, 255, 0 },
{ 0, 255, 255 },
{ 255, 255, 0 },
{ 0, 0, 0 }
}
setTimer (
function ( )
r, g, b = unpack ( colores [ math.random ( #colores ) ] )
end
,2000, 0
)
addEventHandler ( "onClientRender",root,
function ( )
dxDrawText ( "http://bhzserver.tuars.com",0.0,571.0,198.0,599.0,tocolor(r,g,b,255),0.5,"bankgothic","left","top",false,false,false)
dxDrawText ( "Visit :",0.0,549.0,60.0,572.0,tocolor(255,255,255,255),0.7,"pricedown","left","top",false,false,false)
end
)