GUIEditor = {
button = {},
window = {},
staticimage = {}
}
GUIEditor.window[1] = guiCreateWindow(109, 38, 568, 512, "Wepson Shop | HarD | V.1", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 0.72)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.staticimage[1] = guiCreateStaticImage(10, 19, 548, 483, ":Weapson-ShopV1/images/1.png", false, GUIEditor.window[1])
GUIEditor.staticimage[2] = guiCreateStaticImage(10, 10, 91, 89, ":Weapson-ShopV1/images/16.png", false, GUIEditor.staticimage[1])
GUIEditor.button[1] = guiCreateButton(7, 109, 94, 45, "500000$", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE10000")
GUIEditor.staticimage[3] = guiCreateStaticImage(217, 10, 107, 89, ":Weapson-ShopV1/images/22.png", false, GUIEditor.staticimage[1])
GUIEditor.button[2] = guiCreateButton(217, 109, 107, 45, "3000$", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFE10000")
GUIEditor.staticimage[4] = guiCreateStaticImage(435, 11, 93, 88, ":Weapson-ShopV1/images/23.png", false, GUIEditor.staticimage[1])
GUIEditor.button[3] = guiCreateButton(431, 109, 97, 45, "1000$", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.button[3], "default-bold-small")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFE10000")
GUIEditor.staticimage[5] = guiCreateStaticImage(10, 170, 92, 88, ":Weapson-ShopV1/images/25.png", false, GUIEditor.staticimage[1])
GUIEditor.button[4] = guiCreateButton(8, 268, 94, 45, "25000$", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFE10000")
GUIEditor.staticimage[6] = guiCreateStaticImage(212, 170, 102, 88, ":Weapson-ShopV1/images/26.png", false, GUIEditor.staticimage[1])
GUIEditor.button[5] = guiCreateButton(212, 268, 102, 45, "25000$", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.button[5], "default-bold-small")
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFE10000")
GUIEditor.staticimage[7] = guiCreateStaticImage(425, 170, 102, 91, ":Weapson-ShopV1/images/28.png", false, GUIEditor.staticimage[1])
GUIEditor.button[6] = guiCreateButton(425, 268, 102, 45, "5000$", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.button[6], "default-bold-small")
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFE10000")
GUIEditor.staticimage[8] = guiCreateStaticImage(8, 323, 93, 94, ":Weapson-ShopV1/images/29.png", false, GUIEditor.staticimage[1])
GUIEditor.button[7] = guiCreateButton(7, 428, 94, 45, "30000$", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.button[7], "default-bold-small")
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFE10000")
GUIEditor.staticimage[9] = guiCreateStaticImage(211, 329, 103, 93, ":Weapson-ShopV1/images/31.png", false, GUIEditor.staticimage[1])
GUIEditor.button[8] = guiCreateButton(211, 428, 102, 45, "40000$", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.button[8], "default-bold-small")
guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFE10000")
GUIEditor.staticimage[10] = guiCreateStaticImage(420, 331, 107, 91, ":Weapson-ShopV1/images/32.png", false, GUIEditor.staticimage[1])
GUIEditor.button[9] = guiCreateButton(420, 428, 107, 45, "3000$", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.button[9], "default-bold-small")
guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFE10000")
function OpenWin()
if guiGetVisible ( GUIEditor.window[1] ) then
guiSetVisible ( GUIEditor.window[1], false )
showCursor(false)
guiSetInputEnabled(false)
else
guiSetVisible ( GUIEditor.window[1], true )
showCursor(true)
guiSetInputEnabled(true)
end
end
bindKey("/", "down", OpenWin)
addEventHandler('onClientGUIClick', root,
function ( )
if ( source == GUIEditor.button[1] ) then
triggerServerEvent('giveWeapon_', localPlayer , 50000 , 16, 3 , "Grenade " )
elseif ( source == GUIEditor.button[2] ) then
triggerServerEvent('giveWeapon_', localPlayer , 3000 , 22, 99999 , "Colt 45" )
elseif ( source == GUIEditor.button[4] ) then
triggerServerEvent('giveWeapon_', localPlayer , 25000 , 27, 99999 , "Combat SG" )
elseif ( source == GUIEditor.button[5] ) then
triggerServerEvent('giveWeapon_', localPlayer , 25000 , 26, 9999 , "Sawed-off" )
elseif ( source == GUIEditor.button[6] ) then
triggerServerEvent('giveWeapon_', localPlayer , 3000 , 32, 9999 , "Tec-9" )
elseif ( source == GUIEditor.button[7] ) then
triggerServerEvent('giveWeapon_', localPlayer , 30000 , 27, 9999 , "MP5" )
elseif ( source == GUIEditor.button[8] ) then
triggerServerEvent('giveWeapon_', localPlayer , 40000 , 31, 9999 , "M4")
elseif ( source == GUIEditor.button[9] ) then
triggerServerEvent('giveWeapon_', localPlayer , 3000 , 28, 9999 , "Uzi")
elseif ( source == GUIEditor.button[3] ) then
setElementAlpha ( localPlayer , 0 )
end
end
) ;