Ja[B]er[X]Pro Posted June 19, 2016 Share Posted June 19, 2016 (edited) السلام عليكم ورحمة الله وبركاته سويت لوحة دي اكس ووضعت معها بوتون وايديت مخفي المشكلة لما اشغل المود واضغط اف2 ما تظهر اللوحة الدي بق ما يجي به شيئ bindKey("F2","down", function(player) if player == localPlayer then if getElementData(localPlayer,"panelshow",false) then guiSetVisible(edit,true) guiSetVisible(buybutton,true) guiSetVisible(removebutton,true) addEventHandler("onClientRander",dxpanel,true) setElementData(localPlayer,"panelshow",true) showCursor(true) else guiSetVisible(edit,false) guiSetVisible(buybutton,false) guiSetVisible(removebutton,false) addEventHandler("onClientRander",dxpanel,false) setElementData(localPlayer,"panelshow",false) showCursor(false) end end end) Edited June 21, 2016 by Guest Link to comment
iMr.SFA7 Posted June 19, 2016 Share Posted June 19, 2016 panelshow = false bindKey("F2","down", function() if not panelshow then guiSetVisible(edit,true) guiSetVisible(buybutton,true) guiSetVisible(removebutton,true) addEventHandler("onClientRander", root, dxpanel) showCursor(true) else guiSetVisible(edit,false) guiSetVisible(buybutton,false) guiSetVisible(removebutton,false) addEventHandler("onClientRander", root, dxpanel) showCursor(false) end panelshow = not panelshow end) Link to comment
Ja[B]er[X]Pro Posted June 19, 2016 Author Share Posted June 19, 2016 شكراً لك لكن الان صار يظهر الماوس وحده فقط اكواد الدي اكس function dxpanel() dxDrawRectangle(264, 241, 274, 116, tocolor(37, 181, 217, 150), false) dxDrawLine(264, 259, 535, 259, tocolor(255, 255, 255, 255), 1, false) dxDrawText("Super Nick", 337, 231, 434, 252, tocolor(254, 0, 0, 255), 2.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(290, 276, 222, 26, tocolor(255, 255, 255, 255), false) dxDrawRectangle(288, 312, 78, 30, tocolor(254, 0, 0, 255), false) dxDrawText("Buy", 305, 312, 382, 342, tocolor(255, 255, 255, 255), 2.00, "default", "left", "top", false, false, false, false, false) dxDrawRectangle(438, 312, 78, 30, tocolor(254, 0, 0, 255), false) dxDrawText("Remove", 445, 317, 522, 347, tocolor(255, 255, 255, 255), 1.50, "default", "left", "top", false, false, false, false, false) end Link to comment
' A F . Posted June 19, 2016 Share Posted June 19, 2016 (edited) Delete ! Edited June 19, 2016 by Guest Link to comment
Ja[B]er[X]Pro Posted June 19, 2016 Author Share Posted June 19, 2016 نفس المشكلة فقط الماوس تظهر Link to comment
Ja[B]er[X]Pro Posted June 19, 2016 Author Share Posted June 19, 2016 تأكد من احداثيات الدي اكس .. تأكدت منها Link to comment
iMr.SFA7 Posted June 19, 2016 Share Posted June 19, 2016 panelshow = false function dxpanel() dxDrawRectangle(264, 241, 274, 116, tocolor(37, 181, 217, 150), false) dxDrawLine(264, 259, 535, 259, tocolor(255, 255, 255, 255), 1, false) dxDrawText("Super Nick", 337, 231, 434, 252, tocolor(254, 0, 0, 255), 2.00, "default", "left", "top", false, false, true, false, false) dxDrawRectangle(290, 276, 222, 26, tocolor(255, 255, 255, 255), false) dxDrawRectangle(288, 312, 78, 30, tocolor(254, 0, 0, 255), false) dxDrawText("Buy", 305, 312, 382, 342, tocolor(255, 255, 255, 255), 2.00, "default", "left", "top", false, false, false, false, false) dxDrawRectangle(438, 312, 78, 30, tocolor(254, 0, 0, 255), false) dxDrawText("Remove", 445, 317, 522, 347, tocolor(255, 255, 255, 255), 1.50, "default", "left", "top", false, false, false, false, false) end bindKey("F2", "down", function() if (panelshow) then guiSetVisible(edit,false) guiSetVisible(buybutton,false) guiSetVisible(removebutton,false) removeEventHandler("onClientRender", root, dxpanel) showCursor(false) else guiSetVisible(edit,true) guiSetVisible(buybutton,true) guiSetVisible(removebutton,true) addEventHandler("onClientRender", root, dxpanel) showCursor(true) end panelshow = not panelshow end) "onClientRander" "onClientRender" Link to comment
Mr.CoR Posted June 20, 2016 Share Posted June 20, 2016 السلام عليكم تفضل شوف هالموضوع وتعلم كيف تحط عنوان مناسب https://forum.multitheftauto.com/viewtopic.php?f=160&t=100292 وشكرا 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