Yeah... But when it's used in "onClientRender", the result being printed infinity times...
e.g
screenY, count = nil
function one_bla()
-- some code
screenY = 20
-- another code gets the count of something
count = 5 -- sets the count from something
addEventHandler("onClientRender", getRootElement(), drawBg)
end
function drawBg()
for i = 1, count do
dxDrawRectangle(0, screenY, 256, 64, tocolor(0,0,0,100), false)
screenY = screenY + 66
end
end