Jump to content

Unbind Key?


Lloyd Logan

Recommended Posts

Posted

How do i make it so that when F6 is pressed again the GUI disappears?

bindKey("F6", "down", 
function ( ) 
    guiSetVisible( wnd, true ) 
    guiSetVisible( bHealth, true ) 
    guiSetVisible( bDie, true ) 
    showCursor( true ) 
end 
) 

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
bindKey("F6", "down", 
function ( ) 
    guiSetVisible( wnd, not guiGetVisible(wnd) ) 
    guiSetVisible( bHealth, not guiGetVisible(bHealth) ) 
    guiSetVisible( bDie, not guiGetVisible(bDie) ) 
    showCursor( guiGetVisible(wnd) ) 
end 
) 

Please do not PM me with scripting related question nor support, use the forums instead.

Posted
bindKey ("F6", "down", 
    function ( ) 
        local state = guiGetVisible ( wnd ) 
        guiSetVisible ( wnd, not state ) 
        guiSetVisible ( bHealth, not state ) 
        guiSetVisible ( bDie, not state ) 
        showCursor ( not state ) 
    end 
) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
bindKey ("F6", "down", 
    function ( ) 
        local state = guiGetVisible ( wnd ) 
        guiSetVisible ( wnd, not state ) 
        guiSetVisible ( bHealth, not state ) 
        guiSetVisible ( bDie, not state ) 
        showCursor ( not state ) 
    end 
) 

Not working?

bindKey("F6", "down", 
function ( ) 
    guiSetVisible( wnd, true ) 
    guiSetVisible( bHealth, true ) 
    guiSetVisible( bDie, true ) 
    showCursor( true ) 
end 
) 
  
  
bindKey ("F6", "down", 
    function ( ) 
        local state = guiGetVisible ( wnd ) 
        guiSetVisible ( wnd, not state ) 
        guiSetVisible ( bHealth, not state ) 
        guiSetVisible ( bDie, not state ) 
        showCursor ( not state ) 
    end 
) 

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

You must only use the second one.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
You must only use the second one.

Thank You!

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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