taha201100 Posted June 16, 2016 Share Posted June 16, 2016 السلام عليكم bindKey('F1','down', function () guiSetVisible(GUIEditor.label[2],not guiGetVisible(GUIEditor.label[2])) guiSetVisible(GUIEditor.label[3],not guiGetVisible(GUIEditor.label[3])) guiSetVisible(GUIEditor.label[4],not guiGetVisible(GUIEditor.label[4])) guiSetVisible(GUIEditor.label[5],not guiGetVisible(GUIEditor.label[5])) guiSetVisible(GUIEditor.label[6],not guiGetVisible(GUIEditor.label[6])) guiSetVisible(GUIEditor.label[7],not guiGetVisible(GUIEditor.label[7])) guiSetVisible(GUIEditor.staticimage[1],not guiGetVisible(GUIEditor.staticimage[1])) guiSetVisible(GUIEditor.staticimage[2],not guiGetVisible(GUIEditor.staticimage[2])) guiSetVisible(GUIEditor.staticimage[3],not guiGetVisible(GUIEditor.staticimage[3])) guiSetVisible(GUIEditor.staticimage[4],not guiGetVisible(GUIEditor.staticimage[4])) guiSetVisible(GUIEditor.staticimage[5],not guiGetVisible(GUIEditor.staticimage[5])) guiSetVisible(GUIEditor.staticimage[6],not guiGetVisible(GUIEditor.staticimage[6])) showCursor(guiGetVisible(GUIEditor.label[2])) removeEventHandler("onClientRender",root,dxImage) end ) بغيت اعرف شلون اخفي لوحه الدي اكس معهم ولما ارجع اضغط تظهر مره اخرى يا ريت الافاده Link to comment
iMr.SFA7 Posted June 16, 2016 Share Posted June 16, 2016 state = false bindKey('F1','down', function() for _,v in ipairs(GUIEditor) do guiSetVisible(v, not guiGetVisible(v)) end showCursor(guiGetVisible(GUIEditor.label[2])) if state then removeEventHandler("onClientRender",root,dxImage) else addEventHandler("onClientRender",root,dxImage) end state = not state end) Link to comment
Me[Z]oO Posted June 16, 2016 Share Posted June 16, 2016 (edited) function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end bindKey('F1','down', function () if isEventHandlerAdded("onClientRender",root,dxImage) then removeEventHandler("onClientRender", root,dxImage) guiSetVisible(GUIEditor.label[2],false) guiSetVisible(GUIEditor.label[3],false) guiSetVisible(GUIEditor.label[4],false) guiSetVisible(GUIEditor.label[5],false) guiSetVisible(GUIEditor.label[6],false) guiSetVisible(GUIEditor.label[7],false) guiSetVisible(GUIEditor.staticimage[1],false) guiSetVisible(GUIEditor.staticimage[2],false) guiSetVisible(GUIEditor.staticimage[3],false) guiSetVisible(GUIEditor.staticimage[4],false) guiSetVisible(GUIEditor.staticimage[5],false) guiSetVisible(GUIEditor.staticimage[6],false) showCursor(guiGetVisible(false) else addEventHandler("onClientRender",root,dxImage) guiSetVisible(GUIEditor.label[2],not guiGetVisible(GUIEditor.label[2])) guiSetVisible(GUIEditor.label[3],not guiGetVisible(GUIEditor.label[3])) guiSetVisible(GUIEditor.label[4],not guiGetVisible(GUIEditor.label[4])) guiSetVisible(GUIEditor.label[5],not guiGetVisible(GUIEditor.label[5])) guiSetVisible(GUIEditor.label[6],not guiGetVisible(GUIEditor.label[6])) guiSetVisible(GUIEditor.label[7],not guiGetVisible(GUIEditor.label[7])) guiSetVisible(GUIEditor.staticimage[1],not guiGetVisible(GUIEditor.staticimage[1])) guiSetVisible(GUIEditor.staticimage[2],not guiGetVisible(GUIEditor.staticimage[2])) guiSetVisible(GUIEditor.staticimage[3],not guiGetVisible(GUIEditor.staticimage[3])) guiSetVisible(GUIEditor.staticimage[4],not guiGetVisible(GUIEditor.staticimage[4])) guiSetVisible(GUIEditor.staticimage[5],not guiGetVisible(GUIEditor.staticimage[5])) guiSetVisible(GUIEditor.staticimage[6],not guiGetVisible(GUIEditor.staticimage[6])) showCursor(true) end end) Edited June 16, 2016 by Guest Link to comment
taha201100 Posted June 16, 2016 Author Share Posted June 16, 2016 (edited) state = false bindKey('F1','down', function() for _,v in ipairs(GUIEditor) do guiSetVisible(v, not guiGetVisible(v)) end showCursor(guiGetVisible(GUIEditor.label[2])) if state then removeEventHandler("onClientRender",root,dxImage) else addEventHandler("onClientRender",root,dxImage) end state = not state end) function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end bindKey('F1','down', function () if isEventHandlerAdded("onClientRender",root,dxImage) then removeEventHandler("onClientRender", root,dxImage) guiSetVisible(GUIEditor.label[2],false) guiSetVisible(GUIEditor.label[3],false) guiSetVisible(GUIEditor.label[4],false) guiSetVisible(GUIEditor.label[5],false) guiSetVisible(GUIEditor.label[6],false) guiSetVisible(GUIEditor.label[7],false) guiSetVisible(GUIEditor.staticimage[1],false) guiSetVisible(GUIEditor.staticimage[2],false) guiSetVisible(GUIEditor.staticimage[3],false) guiSetVisible(GUIEditor.staticimage[4],false) guiSetVisible(GUIEditor.staticimage[5],false) guiSetVisible(GUIEditor.staticimage[6],false) showCursor(guiGetVisible(false) else addEventHandler("onClientRender",root,dxImage) guiSetVisible(GUIEditor.label[2],not guiGetVisible(GUIEditor.label[2])) guiSetVisible(GUIEditor.label[3],not guiGetVisible(GUIEditor.label[3])) guiSetVisible(GUIEditor.label[4],not guiGetVisible(GUIEditor.label[4])) guiSetVisible(GUIEditor.label[5],not guiGetVisible(GUIEditor.label[5])) guiSetVisible(GUIEditor.label[6],not guiGetVisible(GUIEditor.label[6])) guiSetVisible(GUIEditor.label[7],not guiGetVisible(GUIEditor.label[7])) guiSetVisible(GUIEditor.staticimage[1],not guiGetVisible(GUIEditor.staticimage[1])) guiSetVisible(GUIEditor.staticimage[2],not guiGetVisible(GUIEditor.staticimage[2])) guiSetVisible(GUIEditor.staticimage[3],not guiGetVisible(GUIEditor.staticimage[3])) guiSetVisible(GUIEditor.staticimage[4],not guiGetVisible(GUIEditor.staticimage[4])) guiSetVisible(GUIEditor.staticimage[5],not guiGetVisible(GUIEditor.staticimage[5])) guiSetVisible(GUIEditor.staticimage[6],not guiGetVisible(GUIEditor.staticimage[6])) showCursor(true) end end مشكورين Edited June 16, 2016 by Guest Link to comment
Me[Z]oO Posted June 16, 2016 Share Posted June 16, 2016 (edited) Deleted Edited June 16, 2016 by Guest Link to comment
taha201100 Posted June 16, 2016 Author Share Posted June 16, 2016 طيب سؤال كيف يمديني اسوي في تاب بانيل مثلن لو صارت فل يمديه ينزل اكثر؟ Link to comment
taha201100 Posted June 16, 2016 Author Share Posted June 16, 2016 طيب وش احتاج مثلن لو دخل لاعب السيرفر يصير الليبل رقم 1 ولو دخل كمان لاعب يصير رقم 2 وهكذا Link to comment
' A F . Posted June 17, 2016 Share Posted June 17, 2016 ^ Wiki : Note: #getElementsByType("player") works the same as this function but also works client side unlike this function. استخدم #getElementsByType(string element) 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