GUIEditor = {
button = {},
window = {},
staticimage = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(483, 216, 192, 214, "لوحة", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible ( GUIEditor.window[1] , false )
GUIEditor.staticimage[1] = guiCreateStaticImage(9, 86, 34, 34, ":guieditor/images/7.png", false, GUIEditor.window[1])
GUIEditor.button[1] = guiCreateButton(52, 84, 103, 36, "شراء", false, GUIEditor.window[1])
GUIEditor.button[2] = guiCreateButton(143, 166, 35, 38, "أغلاق", false, GUIEditor.window[1])
end
)
Marker = createMarker (-1669.11768,2044.11768,18.40248+1,"arrow",1,255,255,225)
addEventHandler("onClientMarkerHit", root,
function( hitElement)
if ( source == Marker ) and ( hitElement == localPlayer ) then
showCursor(true)
guiSetVisible(GUIEditor.window[1],true)
end
end)
addEventHandler ( " onClientGUIClick", root,
function()
if source == GUIEditor.button[2] then
showCursor(false)
guiSetVisible(GUIEditor.window[1], false)
elseif source == GUIEditor.button[1] then
setElementHealth (localPlayer , 100)
end
end)
تم هيك شغال 100%