Jump to content

tienda_dearmas resource bugged


yanvr

Recommended Posts

GUIEditor_Image = {} 
  
tiendaDeArmas2 = guiCreateWindow(181,168,456,318,"Tienda de armas para expertos",false) 
botonComprarDeagle = guiCreateButton(15,106,99,26,"Comprar($2000)",false,tiendaDeArmas2) 
botonComprarShotg = guiCreateButton(121,106,99,26,"Comprar($3000)",false,tiendaDeArmas2) 
botonComprarMp5 = guiCreateButton(226,106,99,26,"Comprar($4000)",false,tiendaDeArmas2) 
botonComprarM4 = guiCreateButton(330,106,98,26,"Comprar($5000)",false,tiendaDeArmas2) 
botonComprarMunicDeagle = guiCreateButton(11,234,105,26,"Munic.x50($200)",false,tiendaDeArmas2) 
botonComprarMunicM4 = guiCreateButton(336,234,105,26,"Munic.x120($300)",false,tiendaDeArmas2) 
botonComprarMunicMp5 = guiCreateButton(228,234,105,26,"Munic.x90($300)",false,tiendaDeArmas2) 
botonComprarMunicShotg = guiCreateButton(120,234,105,26,"Munic.x30($100)",false,tiendaDeArmas2) 
municMp5Img = guiCreateStaticImage(248,154,68,73,"images/53.png",false,tiendaDeArmas2) 
municM4Img = guiCreateStaticImage(356,155,62,70,"images/55.png",false,tiendaDeArmas2) 
municDeagleImg = guiCreateStaticImage(35,157,64,71,"images/51.png",false,tiendaDeArmas2) 
municShotgImg = guiCreateStaticImage(141,154,66,72,"images/52.png",false,tiendaDeArmas2) 
imageDeagle = guiCreateStaticImage(35,38,63,61,"images/24.png",false,tiendaDeArmas2) 
imageM4 = guiCreateStaticImage(342,36,64,62,"images/31.png",false,tiendaDeArmas2) 
imageMp5 = guiCreateStaticImage(242,34,65,65,"images/29.png",false,tiendaDeArmas2) 
imageEscopeta = guiCreateStaticImage(138,37,65,62,"images/25.png",false,tiendaDeArmas2) 
Salir = guiCreateButton(362,279,70,25,"Salir",false,tiendaDeArmas2) 
guiWindowSetMovable(tiendaDeArmas2,false) 
guiWindowSetSizable(tiendaDeArmas2,false) 
guiSetVisible(tiendaDeArmas2,false) 
  
function mostrarTienda() 
guiSetVisible (tiendaDeArmas2,true) 
showCursor(true) 
end 
addEvent("mostrarTienda",true) 
addEventHandler("mostrarTienda",getRootElement(),mostrarTienda) 
  
function closeShop2() 
    if guiGetVisible(tiendaDeArmas2) then  
        guiSetVisible(tiendaDeArmas2,false) 
        showCursor(false) 
    end 
end 
addEventHandler ("onClientGUIClick", Salir, closeShop2, false) 
  
function darDeagle() 
    local itemID = 24 
    local itemCost = 2000 
    local itemMunic = 100 
    triggerServerEvent ("comproDeagle", getLocalPlayer(), itemID, itemCost,itemMunic) 
end 
addEventHandler ("onClientGUIClick", botonComprarDeagle, darDeagle, false) 
  
function darShotg() 
    local itemID = 25 
    local itemCost = 3000 
    local itemMunic = 50     
    triggerServerEvent ("comproShotgun", getLocalPlayer(), itemID, itemCost,itemMunic) 
end 
addEventHandler ("onClientGUIClick", botonComprarShotg, darShotg, false) 
  
function darMp5() 
    local itemID = 29 
    local itemCost = 4000 
    local itemMunic = 90 
    triggerServerEvent ("comproMp5", getLocalPlayer(), itemID, itemCost,itemMunic) 
end 
addEventHandler ("onClientGUIClick", botonComprarMp5, darMp5, false) 
  
function darM4() 
    local itemID = 31 
    local itemCost = 5000 
    local itemMunic = 120 
    triggerServerEvent ("comproM4", getLocalPlayer(), itemID, itemCost,itemMunic) 
end 
addEventHandler ("onClientGUIClick", botonComprarM4, darM4, false) 
  
function darMunicM4() 
    local armaID = 31 
    local itemCost = 300 
    local itemMunic = 120 
    triggerServerEvent ("comproMunicionM4", getLocalPlayer(), armaID, itemCost,itemMunic) 
end 
addEventHandler ("onClientGUIClick", botonComprarMunicM4, darMunicM4, false) 
  
function darMunicMp5() 
    local armaID = 29 
    local itemCost = 300 
    local itemMunic = 90 
    triggerServerEvent ("comproMunicionMp5", getLocalPlayer(), armaID, itemCost,itemMunic) 
end 
addEventHandler ("onClientGUIClick", botonComprarMunicMp5, darMunicMp5, false) 
  
function darMunicShotg() 
    local armaID = 25 
    local itemCost = 100 
    local itemMunic = 30 
    triggerServerEvent ("comproMunicionShotg", getLocalPlayer(), armaID, itemCost,itemMunic) 
end 
addEventHandler ("onClientGUIClick", botonComprarMunicShotg, darMunicShotg, false) 
  
function darMunicDeagle() 
    local armaID = 24 
    local itemCost = 200 
    local itemMunic = 50 
    triggerServerEvent ("comproMunicionDeagle", getLocalPlayer(), armaID, itemCost,itemMunic) 
end 
addEventHandler ("onClientGUIClick", botonComprarMunicDeagle, darMunicDeagle, false) 

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...