local marker = createMarker(1698.6185302734, 728.02349853516, 10.8203125,"cylinder",2.0,0,255,0,255)
GUIEditor = {
button = {},
window = {},
staticimage = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(315, 133, 674, 528, "weapon shop", false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.button[1] = guiCreateButton(29, 139, 100, 22, "sniper", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(192, 139, 100, 22, "shotgun", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[3] = guiCreateButton(389, 139, 100, 22, "m4", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[4] = guiCreateButton(548, 139, 100, 22, "mp5", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[5] = guiCreateButton(548, 337, 100, 22, "RPG", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[6] = guiCreateButton(395, 337, 100, 22, "satchel", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[7] = guiCreateButton(192, 337, 100, 22, "teargas", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[8] = guiCreateButton(29, 337, 100, 22, "grenade", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[9] = guiCreateButton(527, 466, 111, 51, "Close", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFAAAAAA")
GUIEditor.staticimage[1] = guiCreateStaticImage(-329, -220, 93, 61, ":guieditor/images/TearGas.png", false, GUIEditor.button[9])
GUIEditor.staticimage[2] = guiCreateStaticImage(29, 41, 0, 9, ":guieditor/images/Sniper.png", false, GUIEditor.window[1])
GUIEditor.staticimage[3] = guiCreateStaticImage(31, 50, 88, 72, ":guieditor/images/Sniper.png", false, GUIEditor.window[1])
GUIEditor.staticimage[4] = guiCreateStaticImage(192, 50, 91, 71, ":guieditor/images/shotgun.png", false, GUIEditor.window[1])
GUIEditor.staticimage[5] = guiCreateStaticImage(197, 228, 91, 79, ":guieditor/images/TearGas.png", false, GUIEditor.window[1])
GUIEditor.staticimage[6] = guiCreateStaticImage(35, 225, 94, 82, ":guieditor/images/grenade.png", false, GUIEditor.window[1])
GUIEditor.staticimage[7] = guiCreateStaticImage(558, 54, 89, 75, ":guieditor/images/mp5.png", false, GUIEditor.window[1])
GUIEditor.staticimage[8] = guiCreateStaticImage(395, 222, 95, 85, ":guieditor/images/satchel.png", false, GUIEditor.window[1])
GUIEditor.staticimage[9] = guiCreateStaticImage(544, 222, 103, 90, ":guieditor/images/rpg.png", false, GUIEditor.window[1])
GUIEditor.staticimage[10] = guiCreateStaticImage(389, 42, 95, 87, ":guieditor/images/m4.png", false, GUIEditor.window[1])
GUIEditor.button[10] = guiCreateButton(112, 396, 105, 98, "Health", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[11] = guiCreateButton(288, 396, 105, 98, "Armor", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FFAAAAAA")
end
)
addEventHandler ("onClientGUIClick", root,
function()
if (source == GUIEditor.button[9] ) then
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
guiSetInputEnabled(false)
end
end
)
addEventHandler("onClientGUIClick",root,
function()
if ( source == GUIEditor.button[1]) then
showCursor(true)
triggerServerEvent ("giveweaponsniper",localPlayer)
end
end )