local screenWidth, screenHeight = guiGetScreenSize ( )
-----------------------------------------------------------------------------------
-- function --
for i=1,5 do
local imageWidth = screenWidth*(1366/1366)
dxDrawImage (screenWidth*(20/1366)+((i-1)*imageWidth) ,screenHeight*(195/768),imageWidth,screenHeight*(768/768), 'x' .. i .. '.png',0,0,0, tocolor(255, 255, 255, 255), false)
end
You image width and height is too BIG/LARGE/Or what ever. You have to fill that in correctly!
But this is how you create images next to each other in a line.