local imgs = {
"firstIMG",
"secondIMG",
"lastIMG",
}
local imgsTable = {}
local sX,sY = guiGetScreenSize()
function showClientImage()
for i=1,#imgs do
time = i-1
if time == 0 then
imgsTable[i] = guiCreateStaticImage( sX, sX, 0, 0, imgs[i]..".png", false )
setTimer(destroyElement,1000,1,imgsTable[i])
else
setTimer(function()
imgsTable[i] = guiCreateStaticImage( sX, sX, 0, 0, imgs[i]..".png", false )
setTimer(destroyElement,(time*1000)+1000,1,imgsTable[i])
end,time*1000,1)
end
end
addEventHandler( "onClientResourceStart", resourceRoot, showClientImage )
ماجربته