مشكلة بنافذة
ما تفتح خربانة
--Client Side #
GUIEditor = {
label = {},
staticimage = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
wnd = guiCreateWindow(99, 126, 828, 524, "Guns Shop By (DABL)", false)
guiWindowSetSizable(wnd, false)
GUIEditor.staticimage[1] = guiCreateStaticImage(14, 30, 82, 80, ":Guns/img/COLT45.png", false, wnd)
GUIEditor.staticimage[2] = guiCreateStaticImage(18, 146, 78, 88, ":Guns/img/AK47.png", false, wnd)
GUIEditor.staticimage[3] = guiCreateStaticImage(21, 280, 75, 87, ":Guns/img/COMBAT.png", false, wnd)
GUIEditor.staticimage[4] = guiCreateStaticImage(145, 30, 75, 80, ":Guns/img/DEAGLE.png", false, wnd)
GUIEditor.staticimage[5] = guiCreateStaticImage(151, 146, 69, 88, ":Guns/img/GRENADE.png", false, wnd)
GUIEditor.staticimage[6] = guiCreateStaticImage(151, 285, 69, 82, ":Guns/img/M4.png", false, wnd)
GUIEditor.staticimage[7] = guiCreateStaticImage(264, 30, 72, 80, ":Guns/img/MICROUZI.png", false, wnd)
GUIEditor.staticimage[8] = guiCreateStaticImage(264, 146, 72, 88, ":Guns/img/MP5.png", false, wnd)
GUIEditor.staticimage[9] = guiCreateStaticImage(258, 280, 78, 87, ":Guns/img/RIFLE.png", false, wnd)
GUIEditor.staticimage[10] = guiCreateStaticImage(374, 30, 73, 80, ":Guns/img/SAWNOFF.png", false, wnd)
GUIEditor.staticimage[11] = guiCreateStaticImage(374, 148, 73, 86, ":Guns/img/SHOTGUN.png", false, wnd)
GUIEditor.staticimage[12] = guiCreateStaticImage(370, 280, 77, 87, ":Guns/img/SILENCED.png", false, wnd)
GUIEditor.staticimage[13] = guiCreateStaticImage(485, 30, 74, 80, ":Guns/img/SNIPER.png", false, wnd)
GUIEditor.staticimage[14] = guiCreateStaticImage(480, 148, 79, 86, ":Guns/img/TEARGAS.png", false, wnd)
GUIEditor.staticimage[15] = guiCreateStaticImage(479, 280, 80, 87, ":Guns/img/TEC9.png", false, wnd)
GUIEditor.staticimage[16] = guiCreateStaticImage(648, 30, 134, 122, ":Guns/img/ARMOR.png", false, wnd)
GUIEditor.staticimage[17] = guiCreateStaticImage(648, 234, 140, 164, ":Guns/img/HEALTH.png", false, wnd)
GUIEditor.label[1] = guiCreateLabel(8, 449, 299, 15, "Choose What Wepon you want-اختار السلاح الذي تريده", false, wnd)
guiLabelSetColor(GUIEditor.label[1], 253, 0, 0)
GUIEditor.label[2] = guiCreateLabel(8, 474, 502, 15, "the shop has been created by .......... [DABL] .......... لقد تم صنع هذا الشوب من قبل", false, wnd)
guiLabelSetColor(GUIEditor.label[2], 0, 42, 254)
CO = guiCreateButton(13, 124, 83, 22, "Buy", false, wnd)--COLT459(Done)
DE = guiCreateButton(147, 124, 83, 22, "Buy", false, wnd)--DEAGLE (Done)
MI = guiCreateButton(254, 124, 83, 22, "Buy", false, wnd)--MICROUZI(Done)
AR = guiCreateButton(648, 181, 134, 34, "Buy Armor", false, wnd)--ARMOR
HE = guiCreateButton(648, 419, 134, 34, "Buy Health", false, wnd)--HEALTH
SW = guiCreateButton(370, 126, 83, 22, "Buy", false, wnd)--SAWNOFF(Done)
SN = guiCreateButton(480, 124, 83, 22, "Buy", false, wnd)--SNIPER(Done)
AK = guiCreateButton(18, 258, 83, 22, "Buy", false, wnd)--AK47(Done)
GE = guiCreateButton(147, 258, 83, 22, "Buy", false, wnd)--GRENAD(Done)
MP = guiCreateButton(254, 258, 83, 22, "Buy", false, wnd)--MP5(Done)
SG = guiCreateButton(370, 258, 83, 22, "Buy", false, wnd)--SHOTGUN(Done)
TG = guiCreateButton(476, 258, 83, 22, "Buy", false, wnd)--TEARGAS(Done)
SG2 = guiCreateButton(15, 371, 83, 22, "Buy", false, wnd)--SHOTGUN 2 (7 SHOTS)(Done)
M4 = guiCreateButton(137, 371, 83, 22, "Buy", false, wnd)--M4(Done)
RF = guiCreateButton(253, 371, 83, 22, "Buy", false, wnd)--Rifle(Done)
SL = guiCreateButton(364, 371, 83, 22, "Buy", false, wnd)--SILENCED(Done)
T9 = guiCreateButton(476, 371, 83, 22, "Buy", false, wnd)--TEC9(Done)
GUIEditor.label[3] = guiCreateLabel(8, 403, 555, 16, "__________________________________________________________________________________", false, wnd)
guiLabelSetColor(GUIEditor.label[3], 65, 199, 254)
guiGetVisible (wnd, false)
end
)
function OpenWin()
if guiGetVisible ( wnd ) then
guiSetVisible ( wnd, false )
showCursor(false)
guiSetInputEnabled(false)
else
guiSetVisible ( wnd, true )
showCursor(true)
guiSetInputEnabled(true)
end
end
bindKey("F9", "down", OpenWin)
addEventHandler ("onClientGUIClick", root,
function()
if ( source == CO ) then
triggerServerEvent('CO', localPlayer)
elseif ( source == DE ) then
triggerServerEvent('DE', localPlayer)
elseif ( source == MT ) then
triggerServerEvent ('MT', localPlayer)
elseif ( source == AR ) then
triggerServerEvent ('AR', localPlayer)
elseif ( source == HE ) then
triggerServerEvent ( 'HE', localPlayer)
elseif ( source == SW ) then
triggerServerEvent ('SW', localPlayer)
elseif ( source == SN ) then
triggerServerEvent ('SN', localPlayer)
elseif ( source == AK ) then
triggerServerEvent ('AK', localPlayer)
elseif ( source == GE ) then
triggerServerEvent ('GE' localPlayer)
elseif ( source == MP ) then
triggerServerEvent ('MP' localPlayer)
elseif ( source == SG ) then
triggerServerEvent ('SG' localPlayer)
elseif ( source == TG ) then
triggerServerEvent ('TG' localPlayer)
elseif ( source == SG2 ) then
triggerServerEvent ('SG2' localPlayer)
elseif ( source == M4 ) then
triggerServerEvent ('M4' localPlayer)
elseif ( source == RF ) then
triggerServerEvent ('RF' localPlayer)
elseif ( source == SL ) then
triggerServerEvent ('SL' localPlayer)
elseif ( source == T9 ) then
triggerServerEvent ('T9' localPlayer)
end
end
)