L3yr Posted March 6, 2017 Share Posted March 6, 2017 انا عامل لوحه عاديه ولوحه dx بس مش عارف ازاى اركبهم معا بعض مثلا انا عامل فى اللوحه العاديه زر لو ضغط على الزر دا يخفى اللوحع العاديه ويفتح اللوحه DX بس مش عارف اركبهم معا بعض Link to comment
coNolel Posted March 6, 2017 Share Posted March 6, 2017 (edited) function اسم الفنكشن الي فيه الزر DX() dxDrawRectangle(x,y,w,h,tocolor(r,g,b)) end addEventHandler("onClientRender",root, اسم الفنكشن اللي فيه الزر DX) addEventHandler("onClientClick",root, function button(button,state) if ( button == "left" and state == "up" ) -- ليش up ? لأنها فعليا ، ظغطة الماوس تكون نزلة وطلعة ض if (isMouseOnPositon(x,y,w,h)) then removeEventHandler("onClientRender",root, اسم الفنكشن اللي فيه اللوحة) end end end) -- مو متأكد - كل الشكر للأخ @Default<3 Edited March 6, 2017 by coNolel Link to comment
L3yr Posted March 6, 2017 Author Share Posted March 6, 2017 14 minutes ago, coNolel said: function اسم الفنكشن الي فيه الزر DX() dxDrawRectangle(x,y,w,h,tocolor(r,g,b)) end addEventHandler("onClientRender",root, اسم الفنكشن اللي فيه الزر DX) addEventHandler("onClientClick",root, button(button,state) if if button = "left" and state = "up" -- ليش up ? لأنها فعليا ، ظغطة الماوس تكون نزلة وطلعة ض if (isMouseOnPositon(x,y,w,h)) then removeEventHandler("onClientRender",root, اسم الفنكشن اللي فيه اللوحة) end end -- مو متأكد - كل الشكر للأخ @Default<3 ممكن التعديل اخى function DXpanel() 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("onClientRender",root,DXpanel)--نظهر لوحة الدي اكس showCursor(true)--يظهر الماوس:) addEventHandler("onClientClick",root, function () if ( source == GUIEditor.button[5] ) then guiSetVisible(GUIEditor.window[1],false) removeEventHandler("onClientRender",root, DXpanel) end end ) Link to comment
#BrosS Posted March 6, 2017 Share Posted March 6, 2017 سويتلك تنفتح اللوحة من زر والدي اكس , وتنغلق بعد الضغط مرة اخرى Show = false function DXpanel() 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 bindKey("D", "down", 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 مدري اذا عندك يفتح زر أو كومند 1 Link to comment
L3yr Posted March 6, 2017 Author Share Posted March 6, 2017 1 hour ago, #BrosS said: سويتلك تنفتح اللوحة من زر والدي اكس , وتنغلق بعد الضغط مرة اخرى Show = false function DXpanel() 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 bindKey("D", "down", 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 مدري اذا عندك يفتح زر أو كومند حبيبى تسلم ديما تكون اجباتك جميله ومفيده Link to comment
L3yr Posted March 6, 2017 Author Share Posted March 6, 2017 20 minutes ago, #BrosS said: الله يسلمك ما زبطت كده اخى ممكن تصححلى هذه عباره عن مركر فى الشارع لما بدخل الماركر تطلعلى اللوحه الاول الى هيا العاديه وفيها زر تفتح اللوحه الثانيه الى هيا الدى اكس لو مو فاضى بعدين اخى 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 Link to comment
#BrosS Posted March 6, 2017 Share Posted March 6, 2017 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() 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()--وظيفة if Show == false then Show = true addEventHandler("onClientRender",root,DXpanel) guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة end -- نهاية )--نهاية قوس الحدث end) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[5] ) then guiSetVisible(GUIEditor.window[1],false) removeEventHandler("onClientRender",root, DXpanel) showCursor(false) Show = false end end Link to comment
#Soking Posted March 6, 2017 Share Posted March 6, 2017 2 minutes ago, #BrosS said: 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() 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()--وظيفة if Show == false then Show = true addEventHandler("onClientRender",root,DXpanel) guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة end -- نهاية )--نهاية قوس الحدث end) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[5] ) then guiSetVisible(GUIEditor.window[1],false) removeEventHandler("onClientRender",root, DXpanel) showCursor(false) Show = false end end مافي جداول للاكواد التصميم و الوحه راح تفتح للكل Link to comment
L3yr Posted March 6, 2017 Author Share Posted March 6, 2017 8 minutes ago, #BrosS said: 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() 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()--وظيفة if Show == false then Show = true addEventHandler("onClientRender",root,DXpanel) guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة end -- نهاية )--نهاية قوس الحدث end) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[5] ) then guiSetVisible(GUIEditor.window[1],false) removeEventHandler("onClientRender",root, DXpanel) showCursor(false) Show = false end end ما قصرت Link to comment
AchrefF Posted March 6, 2017 Share Posted March 6, 2017 35 minutes ago, #Soking said: مافي جداول للاكواد التصميم و الوحه راح تفتح للكل 39 minutes ago, #BrosS said: 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() 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()--وظيفة if Show == false then Show = true addEventHandler("onClientRender",root,DXpanel) guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة end -- نهاية )--نهاية قوس الحدث end) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[5] ) then guiSetVisible(GUIEditor.window[1],false) removeEventHandler("onClientRender",root, DXpanel) showCursor(false) Show = false end end اللوحتين هيفتحو معا بعض اول ما يلمس الماركر Link to comment
L3yr Posted March 6, 2017 Author Share Posted March 6, 2017 43 minutes ago, #Soking said: مافي جداول للاكواد التصميم و الوحه راح تفتح للكل اللوحتين بيفتحو بوجهى اول ما المس الماركر اعمل ايه اخى Link to comment
#BrosS Posted March 6, 2017 Share Posted March 6, 2017 6 minutes ago, L3yr said: اللوحتين بيفتحو بوجهى اول ما المس الماركر اعمل ايه اخى مو أنت قلت بدي يفتحو مع بعض ؟ ._. خلاص فهمت ذذ ثواني Link to comment
L3yr Posted March 6, 2017 Author Share Posted March 6, 2017 Just now, #BrosS said: مو أنت قلت بدي يفتحو مع بعض ؟ ._. لا اخى فهمتنى غلط واسف لو معرفتش افسر انا عوز اعمل زر داخل اللوحه العاديه تفتح لوحه الدى اكس واسف كمان مره اخى Link to comment
#BrosS Posted March 6, 2017 Share Posted March 6, 2017 (edited) GUIEditor = { button = {} window = {} label = {} edit = {} } 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() 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(hit)--وظيفة if localPlayer == hit then if getElementType(hit) == "player" then guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس --نهاية الوظيفة end -- نهاية end end )--نهاية قوس الحدث end) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[4] ) then -- حط الزر اللي تبيه يفتح الدي اكس addEventHandler("onClientRender",root,DXpanel) elseif ( source == GUIEditor.button[5] ) then guiSetVisible(GUIEditor.window[1],false) removeEventHandler("onClientRender",root, DXpanel) showCursor(false) Show = false end end Edited March 6, 2017 by #BrosS Link to comment
L3yr Posted March 6, 2017 Author Share Posted March 6, 2017 27 minutes ago, #BrosS said: GUIEditor = { button = {} window = {} label = {} edit = {} } 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() 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(hit)--وظيفة if localPlayer == hit then if getElementType(hit) == "player" and not isPedInVehicle(hit) then guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس --نهاية الوظيفة end -- نهاية end end )--نهاية قوس الحدث end) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[4] ) then -- حط الزر اللي تبيه يفتح الدي اكس addEventHandler("onClientRender",root,DXpanel) elseif ( source == GUIEditor.button[5] ) then guiSetVisible(GUIEditor.window[1],false) removeEventHandler("onClientRender",root, DXpanel) showCursor(false) Show = false end end زبطت الف شكرا Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now