Jump to content

getdx


Recommended Posts

السلام عليكم

  
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
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
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 by Guest
Link to comment
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 

مشكورين :D

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