ممكن مساعدة انا حابب اخلي زر النكست لما اضغط عليه يجيب لي قائمة ثانية
function MensajeBienvenida()
outputChatBox("#ffffffPress F1 to open the window", 255, 255, 255, true)
end
addEventHandler("onClientResourceStart", resourceRoot, MensajeBienvenida)
GUIEditor = {
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.button[1] = guiCreateButton(1175, 148, 112, 37, "Skin 1", false)
GUIEditor.button[2] = guiCreateButton(1175, 310, 112, 37, "Skin 2", false)
GUIEditor.button[3] = guiCreateButton(1175, 472, 112, 37, "Skin 3", false)
GUIEditor.button[4] = guiCreateButton(1175, 634, 112, 37, "Skin 4", false)
GUIEditor.button[5] = guiCreateButton(1000, 470, 112, 37, "Skin 5", false)
--GUIEditor.button[6] = guiCreateButton(1175, 470, 112, 37, "Skin 6", false)
--GUIEditor.button[8] = guiCreateButton(1175, 470, 112, 37, "Special", false)
--GUIEditor.button[9] = guiCreateButton(1175, 470, 112, 37, "Skin 7", false)
GUIEditor.button[7] = guiCreateButton(1264, 718, 98, 40, "CLOSE", false)
GUIEditor.button[10] = guiCreateButton(1129, 718, 98, 40, "Next", false)
end
)
local dxfont0_ForzaBlack = dxCreateFont("fonts/ForzaBlack.otf", 15)
local sx,sy = guiGetScreenSize()
local px,py = 1366,768 -- your resolution
local x,y = (sx/px), (sy/py)
function CosasDX()
--=dxDrawRectangle(280, 138, 782, 487, tocolor(254, 254, 254, 255), false)
dxDrawRectangle(x*1100, y*0, x*782, y*1200, tocolor(254, 254, 254, 255), false)
dxDrawRectangle(x*1100, y*0, x*782, y*47, tocolor(19, 19, 19, 255), false)
dxDrawImage(x*1165, y*60, x*133, y*87, "images/image.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(x*1165, y*222, x*133, y*87, "images/image2.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(x*1165, y*383, x*133, y*87, "images/image3.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(x*1165, y*544, x*133, y*87, "images/image4.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
--dxDrawImage(318, 373, 129, 87, "images/image5.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
--dxDrawImage(524, 373, 129, 87, "images/image6.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
--dxDrawImage(732, 373, 129, 87, "images/frame1.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
--dxDrawImage(916, 373, 129, 87, "images/frame1.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawText("Infernus Skins", x*1190, y*0, x*1280, y*47, tocolor(123, 104, 238, 255), 1.00, dxfont0_ForzaBlack, "center", "center", false, false, false, false, false)
end
addEventHandler("onClientRender", root,
CosasDX)
addEventHandler ( 'onClientGUIClick', root,
function ( )
if ( source == GUIEditor.button[7] ) then
removeEventHandler ( "onClientRender", root, CosasDX )
guiSetVisible ( GUIEditor.button[1] , false )
guiSetVisible ( GUIEditor.button[2] , false )
guiSetVisible ( GUIEditor.button[3] , false )
guiSetVisible ( GUIEditor.button[4] , false )
guiSetVisible ( GUIEditor.button[7] , false )
guiSetVisible ( GUIEditor.button[10] , true )
showCursor(false)
end
end )
----------Next start
addEventHandler ( 'onClientGUIClick', root,
function ( )
if ( source == GUIEditor.button[10] ) then
removeEventHandler ( "onClientRender", root)
guiSetVisible ( GUIEditor.button[1] , false )
guiSetVisible ( GUIEditor.button[2] , false )
guiSetVisible ( GUIEditor.button[3] , false )
guiSetVisible ( GUIEditor.button[4] , false )
guiSetVisible ( GUIEditor.button[7] , false )
else
showEventHandler ( "onClientRender", root)
guiSetVisible ( GUIEditor.button[10] ,true )
guiSetVisible ( GUIEditor.button[5] , true )
guiSetVisible ( GUIEditor.button[6] , true )
guiSetVisible ( GUIEditor.button[7] , false )
guiSetVisible ( GUIEditor.button[8] , true )
guiSetVisible ( GUIEditor.button[10] , true )
showCursor(true)
end
end )
--next end
function estadofalso()
estado = false
if (estado == false) then
removeEventHandler ( "onClientRender", root, CosasDX )
guiSetVisible ( GUIEditor.button[1] , false )
guiSetVisible ( GUIEditor.button[2] , false )
guiSetVisible ( GUIEditor.button[3] , false )
guiSetVisible ( GUIEditor.button[4] , false )
guiSetVisible ( GUIEditor.button[5] , false )
guiSetVisible ( GUIEditor.button[6] , false )
guiSetVisible ( GUIEditor.button[7] , false )
guiSetVisible ( GUIEditor.button[8] , false )
guiSetVisible ( GUIEditor.button[9] , false )
guiSetVisible ( GUIEditor.button[10] , false )
showCursor(false)
end
end
addEventHandler("onClientResourceStart", resourceRoot, estadofalso)
function open()
addEventHandler ( "onClientRender", root, CosasDX )
guiSetVisible ( GUIEditor.button[1] , true )
guiSetVisible ( GUIEditor.button[2] , true )
guiSetVisible ( GUIEditor.button[3] , true )
guiSetVisible ( GUIEditor.button[4] , true )
guiSetVisible ( GUIEditor.button[5] , true )
guiSetVisible ( GUIEditor.button[6] , true )
guiSetVisible ( GUIEditor.button[7] , true )
guiSetVisible ( GUIEditor.button[8] , true )
guiSetVisible ( GUIEditor.button[9] , false )
guiSetVisible ( GUIEditor.button[10] , true )
showCursor(true)
end
bindKey("F1", "both", open)