Jump to content

-


Recommended Posts

function centerWindow (center_window) 
    local screenW, screenH = guiGetScreenSize() 
    local windowW, windowH = guiGetSize(center_window, false) 
    local x, y = (screenW - windowW) /2,(screenH - windowH) /2 
    guiSetPosition(center_window, x, y, false) 
end 
  
wnd = guiCreateWindow(0, 0, 1, 1, "", true) 
guiSetVisible(wnd, false) 
guiSetAlpha(wnd, 0) 
centerWindow( wnd ) 
  
b1 = guiCreateStaticImage(1248, 129, 108, 106, "shop.png", false, wnd) 
setElementData(b1, "tooltip-text", "الشوب", false) 
b2 = guiCreateStaticImage(1248, 235, 108, 106, "weth.png", false, wnd) 
setElementData(b2, "tooltip-text", "اسلحة الثوار", false) 
b3 = guiCreateStaticImage(1248, 370, 108, 89, "wepo.png", false, wnd) 
setElementData(b3, "tooltip-text", "اسلحة المرتزقة", false) 
b4 = guiCreateStaticImage(1197, 469, 159, 106, "car.png", false, wnd) 
setElementData(b4, "tooltip-text", "السيارات", false) 
b5 = guiCreateStaticImage(1251, 579, 105, 105, "skins.png", false, wnd) 
setElementData(b5, "tooltip-text", "الشخصيات", false) 
  
wnd5 = guiCreateWindow(0.26, 0.25, 0.46, 0.38, "Skins", true) 
guiSetVisible(wnd5, false) 
centerWindow ( wnd5, 2, 4 )  
  
skin1 = guiCreateStaticImage(15, 30, 138, 244, "skins/102.png", false, wnd5) 
setElementData(skin1, "tooltip-text", "Jeesh $3000", false) 
skin2 = guiCreateStaticImage(168, 30, 138, 244, "skins/104.png", false, wnd5) 
setElementData(skin2, "tooltip-text", "Msawr $3000", false) 
skin3 = guiCreateStaticImage(321, 30, 138, 244, "Skins/108.png", false, wnd5) 
setElementData(skin3, "tooltip-text", "Ninja $2500", false) 
skin4 = guiCreateStaticImage(475, 30, 138, 244, "Skins/109.png", false, wnd5) 
setElementData(skin4, "tooltip-text", "Susake $3500", false) 
  
  
addEventHandler ( "onClientGUIClick", resourceRoot, function () 
 if (source == b1) then 
   guiSetVisible (wnd4, true) 
   elseif (source == b2) then 
   guiSetVisible (wnd2, true) 
   elseif (source == b3) then 
   guiSetVisible (wnd3, true) 
   elseif (source == b4) then 
   guiSetVisible (wnd, true) 
  end 
end) 
  
function On() 
    if (guiGetVisible(wnd) == true) then 
        guiSetVisible(wnd, false) 
        guiSetVisible(wnd2, false) 
        showCursor(false) 
    else 
        guiSetVisible(wnd, true) 
        showCursor(true) 
    end 
end 
bindKey("F7","down",On) 
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...