Jump to content

معي مشكله ارجو حلها


Recommended Posts

السلام عليكم شباب

انا معي مشلكه انا سويت لوحة dx

و كل شي 

بس حطيت معاها 

button

dx تشتغل بس

button

ما يشتغل ذا الكود 


GUIEditor = {
    button = {}
}
        GUIEditor.button[1] = guiCreateButton(296, 217, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(583, 221, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[3] = guiCreateButton(301, 338, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[4] = guiCreateButton(302, 463, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[5] = guiCreateButton(584, 463, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[6] = guiCreateButton(584, 338, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA")    
       


local screenW, screenH = guiGetScreenSize() function dx()

        dxDrawRectangle(245, 140, 573, 459, tocolor(255, 0, 0, 159), false)
        dxDrawRectangle(292, 211, 208, 79, tocolor(33, 9, 255, 190), false)
        dxDrawRectangle(574, 211, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(292, 328, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(292, 453, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(574, 328, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(574, 453, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(245, 140, 573, 61, tocolor(65, 255, 0, 190), false)
        dxDrawText("Veh System |Salh", 249, 143, 814, 196, tocolor(0, 0, 0, 190), 2.40, "default", "center", "center", false, false, false, false, false)
    end
function Open() if removeEventHandler("onClientRender", root, dx) then showCursor(false) guiSetInputEnabled(false) else
addEventHandler("onClientRender", root, dx) showCursor(true) 
guiSetInputEnabled(true)
end 
end
bindKey("F6", "down", Open)

و سلام 

Link to comment
On ٢٨‏/٦‏/٢٠١٧ at 03:46, salh said:

السلام عليكم شباب

انا معي مشلكه انا سويت لوحة dx

و كل شي 

بس حطيت معاها 

button

dx تشتغل بس

button

ما يشتغل ذا الكود 


GUIEditor = {
    button = {}
}
        GUIEditor.button[1] = guiCreateButton(296, 217, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(583, 221, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[3] = guiCreateButton(301, 338, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[4] = guiCreateButton(302, 463, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[5] = guiCreateButton(584, 463, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[6] = guiCreateButton(584, 338, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA")    
       


local screenW, screenH = guiGetScreenSize() function dx()

        dxDrawRectangle(245, 140, 573, 459, tocolor(255, 0, 0, 159), false)
        dxDrawRectangle(292, 211, 208, 79, tocolor(33, 9, 255, 190), false)
        dxDrawRectangle(574, 211, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(292, 328, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(292, 453, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(574, 328, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(574, 453, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(245, 140, 573, 61, tocolor(65, 255, 0, 190), false)
        dxDrawText("Veh System |Salh", 249, 143, 814, 196, tocolor(0, 0, 0, 190), 2.40, "default", "center", "center", false, false, false, false, false)
    end
function Open() if removeEventHandler("onClientRender", root, dx) then showCursor(false) guiSetInputEnabled(false) else
addEventHandler("onClientRender", root, dx) showCursor(true) 
guiSetInputEnabled(true)
end 
end
bindKey("F6", "down", Open)

و سلام 

الازرار مش بتظهر يعنى ؟؟

Link to comment
1 hour ago, salh said:

الازار تظهر بس

في وجهي

 

لو قصدك تظهر اول ما تشغل المود فى وجهك

 

جرب

GUIEditor = {
    button = {}
}
        GUIEditor.button[1] = guiCreateButton(296, 217, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
guiSetVisible( GUIEditor.button[1],false)
        GUIEditor.button[2] = guiCreateButton(583, 221, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
guiSetVisible( GUIEditor.button[2],false)
        GUIEditor.button[3] = guiCreateButton(301, 338, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
guiSetVisible( GUIEditor.button[3],false)
        GUIEditor.button[4] = guiCreateButton(302, 463, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
guiSetVisible( GUIEditor.button[4],false)
        GUIEditor.button[5] = guiCreateButton(584, 463, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
guiSetVisible( GUIEditor.button[5],false)
        GUIEditor.button[6] = guiCreateButton(584, 338, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") 
guiSetVisible( GUIEditor.button[6],false)

       


local screenW, screenH = guiGetScreenSize() function dx()

        dxDrawRectangle(245, 140, 573, 459, tocolor(255, 0, 0, 159), false)
        dxDrawRectangle(292, 211, 208, 79, tocolor(33, 9, 255, 190), false)
        dxDrawRectangle(574, 211, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(292, 328, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(292, 453, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(574, 328, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(574, 453, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(245, 140, 573, 61, tocolor(65, 255, 0, 190), false)
        dxDrawText("Veh System |Salh", 249, 143, 814, 196, tocolor(0, 0, 0, 190), 2.40, "default", "center", "center", false, false, false, false, false)
    end
function Open() if removeEventHandler("onClientRender", root, dx) then 
showCursor(false)
guiSetVisible( GUIEditor.button[1],false)
guiSetVisible( GUIEditor.button[2],false)
guiSetVisible( GUIEditor.button[3],false)
guiSetVisible( GUIEditor.button[4],false)
guiSetVisible( GUIEditor.button[5],false)
guiSetVisible( GUIEditor.button[6],false)
guiSetInputEnabled(false) 
else
addEventHandler("onClientRender", root, dx)
showCursor(true) 
guiSetInputEnabled(true)
guiSetVisible( GUIEditor.button[1],true)
guiSetVisible( GUIEditor.button[2],true)
guiSetVisible( GUIEditor.button[3],true)
guiSetVisible( GUIEditor.button[4],true)
guiSetVisible( GUIEditor.button[5],true)
guiSetVisible( GUIEditor.button[6],true)
   
end 
end
bindKey("F6", "down", Open)

 

Edited by L3yr
Link to comment
4 minutes ago, L3yr said:

لو قصدك تظهر اول ما تشغل المود فى وجهك

 

جرب


GUIEditor = {
    button = {}
}
        GUIEditor.button[1] = guiCreateButton(296, 217, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
guiSetVisible( GUIEditor.button[1],false)
        GUIEditor.button[2] = guiCreateButton(583, 221, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
guiSetVisible( GUIEditor.button[2],false)
        GUIEditor.button[3] = guiCreateButton(301, 338, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
guiSetVisible( GUIEditor.button[3],false)
        GUIEditor.button[4] = guiCreateButton(302, 463, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
guiSetVisible( GUIEditor.button[4],false)
        GUIEditor.button[5] = guiCreateButton(584, 463, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
guiSetVisible( GUIEditor.button[5],false)
        GUIEditor.button[6] = guiCreateButton(584, 338, 189, 63, "", false)
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") 
guiSetVisible( GUIEditor.button[6],false)

       


local screenW, screenH = guiGetScreenSize() function dx()

        dxDrawRectangle(245, 140, 573, 459, tocolor(255, 0, 0, 159), false)
        dxDrawRectangle(292, 211, 208, 79, tocolor(33, 9, 255, 190), false)
        dxDrawRectangle(574, 211, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(292, 328, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(292, 453, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(574, 328, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(574, 453, 208, 79, tocolor(0, 48, 255, 190), false)
        dxDrawRectangle(245, 140, 573, 61, tocolor(65, 255, 0, 190), false)
        dxDrawText("Veh System |Salh", 249, 143, 814, 196, tocolor(0, 0, 0, 190), 2.40, "default", "center", "center", false, false, false, false, false)
    end
function Open() if removeEventHandler("onClientRender", root, dx) then showCursor(false) guiSetInputEnabled(false) else
addEventHandler("onClientRender", root, dx) showCursor(true) 
guiSetInputEnabled(true)
guiSetVisible( GUIEditor.button[1],true)
guiSetVisible( GUIEditor.button[2],true)
guiSetVisible( GUIEditor.button[3],true)
guiSetVisible( GUIEditor.button[4],true)
guiSetVisible( GUIEditor.button[5],true)
guiSetVisible( GUIEditor.button[6],true)
   
end 
end
bindKey("F6", "down", Open)

 

كـود نـاقـص -
الان هو يشغل مود الازرار ماراح تظهر في وجهة !! يضغط اف6 = راح تشتغل لوحة
بس اذا ضغط اف6 مرة اخري حتي يخفي الوحة = الازرار ماتختفي ,,هههههههههـ

جــــرب هـذا ,, ضـفـت علـيـة تختفي الازرار
 

1 hour ago, salh said:

الازار تظهر بس

في وجهي

 

^____^

    GUIEditor = {
        button = {}
    }
            GUIEditor.button[1] = guiCreateButton(296, 217, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
    guiSetVisible( GUIEditor.button[1],false)
            GUIEditor.button[2] = guiCreateButton(583, 221, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
    guiSetVisible( GUIEditor.button[2],false)
            GUIEditor.button[3] = guiCreateButton(301, 338, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
    guiSetVisible( GUIEditor.button[3],false)
            GUIEditor.button[4] = guiCreateButton(302, 463, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
    guiSetVisible( GUIEditor.button[4],false)
            GUIEditor.button[5] = guiCreateButton(584, 463, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
    guiSetVisible( GUIEditor.button[5],false)
            GUIEditor.button[6] = guiCreateButton(584, 338, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") 
    guiSetVisible( GUIEditor.button[6],false)

           


    local screenW, screenH = guiGetScreenSize() function dx()

            dxDrawRectangle(245, 140, 573, 459, tocolor(255, 0, 0, 159), false)
            dxDrawRectangle(292, 211, 208, 79, tocolor(33, 9, 255, 190), false)
            dxDrawRectangle(574, 211, 208, 79, tocolor(0, 48, 255, 190), false)
            dxDrawRectangle(292, 328, 208, 79, tocolor(0, 48, 255, 190), false)
            dxDrawRectangle(292, 453, 208, 79, tocolor(0, 48, 255, 190), false)
            dxDrawRectangle(574, 328, 208, 79, tocolor(0, 48, 255, 190), false)
            dxDrawRectangle(574, 453, 208, 79, tocolor(0, 48, 255, 190), false)
            dxDrawRectangle(245, 140, 573, 61, tocolor(65, 255, 0, 190), false)
            dxDrawText("Veh System |Salh", 249, 143, 814, 196, tocolor(0, 0, 0, 190), 2.40, "default", "center", "center", false, false, false, false, false)
        end
    function Open()
	if removeEventHandler("onClientRender", root, dx) then 
	showCursor(false) 
	guiSetInputEnabled(false)
    guiSetVisible( GUIEditor.button[1],false)
    guiSetVisible( GUIEditor.button[2],false)
    guiSetVisible( GUIEditor.button[3],false)
    guiSetVisible( GUIEditor.button[4],false)
    guiSetVisible( GUIEditor.button[5],false)
    guiSetVisible( GUIEditor.button[6],false)
	else
    addEventHandler("onClientRender", root, dx) 
	showCursor(true) 
    guiSetInputEnabled(true)
    guiSetVisible( GUIEditor.button[1],true)
    guiSetVisible( GUIEditor.button[2],true)
    guiSetVisible( GUIEditor.button[3],true)
    guiSetVisible( GUIEditor.button[4],true)
    guiSetVisible( GUIEditor.button[5],true)
    guiSetVisible( GUIEditor.button[6],true)
    end 
    end
    bindKey("F6", "down", Open)


 

Link to comment
2 minutes ago, Mr.OppS said:

كـود نـاقـص -
الان هو يشغل مود الازرار ماراح تظهر في وجهة !! يضغط اف6 = راح تشتغل لوحة
بس اذا ضغط اف6 مرة اخري حتي يخفي الوحة = الازرار ماتختفي ,,هههههههههـ

جــــرب هـذا ,, ضـفـت علـيـة تختفي الازرار
 

^____^


    GUIEditor = {
        button = {}
    }
            GUIEditor.button[1] = guiCreateButton(296, 217, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
    guiSetVisible( GUIEditor.button[1],false)
            GUIEditor.button[2] = guiCreateButton(583, 221, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
    guiSetVisible( GUIEditor.button[2],false)
            GUIEditor.button[3] = guiCreateButton(301, 338, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
    guiSetVisible( GUIEditor.button[3],false)
            GUIEditor.button[4] = guiCreateButton(302, 463, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
    guiSetVisible( GUIEditor.button[4],false)
            GUIEditor.button[5] = guiCreateButton(584, 463, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
    guiSetVisible( GUIEditor.button[5],false)
            GUIEditor.button[6] = guiCreateButton(584, 338, 189, 63, "", false)
            guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") 
    guiSetVisible( GUIEditor.button[6],false)

           


    local screenW, screenH = guiGetScreenSize() function dx()

            dxDrawRectangle(245, 140, 573, 459, tocolor(255, 0, 0, 159), false)
            dxDrawRectangle(292, 211, 208, 79, tocolor(33, 9, 255, 190), false)
            dxDrawRectangle(574, 211, 208, 79, tocolor(0, 48, 255, 190), false)
            dxDrawRectangle(292, 328, 208, 79, tocolor(0, 48, 255, 190), false)
            dxDrawRectangle(292, 453, 208, 79, tocolor(0, 48, 255, 190), false)
            dxDrawRectangle(574, 328, 208, 79, tocolor(0, 48, 255, 190), false)
            dxDrawRectangle(574, 453, 208, 79, tocolor(0, 48, 255, 190), false)
            dxDrawRectangle(245, 140, 573, 61, tocolor(65, 255, 0, 190), false)
            dxDrawText("Veh System |Salh", 249, 143, 814, 196, tocolor(0, 0, 0, 190), 2.40, "default", "center", "center", false, false, false, false, false)
        end
    function Open()
	if removeEventHandler("onClientRender", root, dx) then 
	showCursor(false) 
	guiSetInputEnabled(false)
    guiSetVisible( GUIEditor.button[1],false)
    guiSetVisible( GUIEditor.button[2],false)
    guiSetVisible( GUIEditor.button[3],false)
    guiSetVisible( GUIEditor.button[4],false)
    guiSetVisible( GUIEditor.button[5],false)
    guiSetVisible( GUIEditor.button[6],false)
	else
    addEventHandler("onClientRender", root, dx) 
	showCursor(true) 
    guiSetInputEnabled(true)
    guiSetVisible( GUIEditor.button[1],true)
    guiSetVisible( GUIEditor.button[2],true)
    guiSetVisible( GUIEditor.button[3],true)
    guiSetVisible( GUIEditor.button[4],true)
    guiSetVisible( GUIEditor.button[5],true)
    guiSetVisible( GUIEditor.button[6],true)
    end 
    end
    bindKey("F6", "down", Open)


 

يا حبيبى انا عدلته قبل ما تتكلم شوف التعديل وتعال اتكلم

Link to comment
8 minutes ago, Mr.OppS said:

روح أنــت شوف أكـوادك !!
وشوف أكـوآدي !!
,و راح تفـهـم

انت ضفت اخففاء الازرار لما يضغط اف 6  مر تانيه   صح ......طيب  ما انا عدلته قبل ما تنزل موضوعك شكل النت بايظ عندك ومش شايف تعديلى على الكود

وهتلاقى تعديلى من 17 دقيقه وانت منزل موضوعك بعدى ب 4 ق

Edited by L3yr
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...