local screenWidth, screenHeight = guiGetScreenSize()
local image = \"kep1.png\"
addEventHandler(\"onClientRender\", root, function()
dxDrawImage(screenWidth/2 - 300, screenHeight/2 - 200, 600, 400, image)
end)
bindKey(\"arrow_l\", \"down\", function()
image = \"kep1.png\"
end)
bindKey(\"arrow_r\", \"down\", function()
image = \"kep2.png\"
end)
vagy
local screenWidth, screenHeight = guiGetScreenSize()
local image = 1
addEventHandler(\"onClientRender\", root, function()
dxDrawImage(screenWidth/2 - 300, screenHeight/2 - 200, 600, 400, \"kep\" .. image .. \".png\")
end)
bindKey(\"arrow_l\", \"down\", function()
if image ~= 1 then
image = image - 1
end
end)
bindKey(\"arrow_r\", \"down\", function()
if image ~= 2 then
image = image + 1
end
end)