local sx, sy = guiGetScreenSize ( )
local example =
{
{ "test1" },
{ "test2" }
}
function draw ( )
local width, height = 100, 50
local x, y = ( sx / 2 - width / 2 ), ( sy / 2 - height / 2 )
for _, value in ipairs ( example ) do
dxDrawRectangle ( x, y, width, height )
y = ( y + 10 )
end
end
addEventHandler ( "onClientRender", root, draw )