ما زبطت كده اخى ممكن تصححلى هذه
عباره عن مركر فى الشارع لما بدخل الماركر
تطلعلى اللوحه الاول الى هيا العاديه
وفيها زر تفتح اللوحه الثانيه الى هيا الدى اكس
لو مو فاضى بعدين اخى
local markerLS = createMarker (1742.1099853516,-2287.8000488281,12.199999809265, "cylinder", 1.5, 120, 255, 216, 100 )
police = createBlip (1742.1099853516,-2287.8000488281,13.199999809265, 52 )
setBlipVisibleDistance(police , 300)
GUIEditor.window[1] = guiCreateWindow(463, 333, 331, 447, "ATM", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 0.82)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF259F1F")
GUIEditor.label[1] = guiCreateLabel(114, 22, 138, 49, "CUA", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
GUIEditor.edit[1] = guiCreateEdit(10, 106, 302, 35, "", false, GUIEditor.window[1])
GUIEditor.label[2] = guiCreateLabel(15, 86, 185, 15, "your Banck blance", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[2], "default-bold-small")
GUIEditor.label[3] = guiCreateLabel(25, 219, 185, 15, "Amount-->", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[3], "default-bold-small")
GUIEditor.button[1] = guiCreateButton(25, 164, 108, 38, "Withdraw", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF")
GUIEditor.button[2] = guiCreateButton(194, 164, 108, 38, "Deposit", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF")
GUIEditor.edit[2] = guiCreateEdit(10, 244, 302, 35, "", false, GUIEditor.window[1])
GUIEditor.button[5] = guiCreateButton(106, 347, 121, 70, "Hack", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[5], "default-bold-small")
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFBE0000")
GUIEditor.button[6] = guiCreateButton(251, 403, 71, 35, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[6], "default-bold-small")
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFFFFFF")
guiSetVisible (GUIEditor.window[1], false)
Show = false
function DXpanel() if removeEventHandler("onClientRender", root, dx) then showCursor(false) guiSetInputEnabled(false) else
dxDrawRectangle(464, 368, 305, 415, tocolor(0, 0, 0, 191), true)
dxDrawRectangle(465, 369, 304, 29, tocolor(0, 0, 0, 225), false)
dxDrawText("Hack", 581, 369, 666, 398, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false)
dxDrawRectangle(578, 600, 81, 36, tocolor(0, 195, 9, 191), true)
dxDrawText("OK", 593, 604, 642, 636, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false)
dxDrawRectangle(517, 646, 202, 68, tocolor(195, 0, 0, 191), true)
dxDrawText("%5", 583, 656, 655, 705, tocolor(255, 255, 255, 255), 1.50, "bankgothic", "left", "top", false, false, true, false, false)
dxDrawRectangle(464, 750, 305, 8, tocolor(255, 255, 255, 255), true)
dxDrawText("Gafwa", 588, 755, 660, 783, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false)
dxDrawRectangle(465, 580, 304, 8, tocolor(255, 255, 255, 255), true)
end
addEventHandler("onClientMarkerHit",markerLS,--عند لمس الماركر المحدد
function()--وظيفة
guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة
showCursor(true) --نظهر الماوس
end --نهاية الوظيفة
)--نهاية قوس الحدث
Show = false
function ()
if Show == false then
Show = true
addEventHandler("onClientRender",root,DXpanel)--نظهر لوحة الدي اكس
showCursor(true)
guiSetVisible(GUIEditor.window[1],true)
elseif Show == true then
Show = false
removeEventHandler("onClientRender", root, dxWindow)
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
end
end)
addEventHandler("onClientClick",root,
function ()
if ( source == GUIEditor.button[5] ) then
guiSetVisible(GUIEditor.window[1],false)
removeEventHandler("onClientRender",root, DXpanel)
showCursor(false)
end
end