Jump to content

x[مشكلة]x في لوحة دي اكس


Recommended Posts

السلام عليكم ورحمة الله وبركاته

سويت لوحة دي اكس ووضعت معها بوتون وايديت مخفي

المشكلة لما اشغل المود واضغط اف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 by Guest
Link to comment
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

شكراً لك لكن الان صار يظهر الماوس وحده فقط

اكواد الدي اكس

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...