Jump to content

2 Bind Key


~Funky~

Recommended Posts

Antes Que Todo, Hola Soy Nuevo En La Comunidad y Estoy Aprendiendo LUA Para Crear Mi Propio Server, Se Los Conocimientos Basicos y Espero Aprender Mucho Mas :D .

Ahora El Problema :( :

Tengo un Problema Con Un Panel Quiero Que Se Habra Mi Panel Al Apretar 2 Botones pero No Se Como me Podrian Ayudar?

Aca El Bind Que Tengo :

bindKey ( "V", "down", 
function () 
if ( guiGetVisible ( Windvip ) == true ) then 
guiSetVisible ( Windvip, false ) 
showCursor(false) 
else               
guiSetVisible ( Windvip, true ) 
showCursor(true) 
end 
end) 

Desde Ya Muchas Gracias c:

Link to comment
Simplemente usa un bind como el que tenes y luego usas:
getKeyState 

Perdon por responder recien. Solid Nose o no Puedo Unir el

getKeyState 

con mi bind me puedes ayudar para saber como debe ir porfavor te lo agradeceria mucho.

Link to comment

Intento esto.

  
  
function open() 
    if getKeyState( "lctrl" ) == true or getKeyState( "rctrl" ) == true then 
        if ( guiGetVisible ( Windvip ) == true ) then 
            guiSetVisible ( Windvip, false ) 
            showCursor(false) 
            else               
            guiSetVisible ( Windvip, true ) 
            showCursor(true) 
        end 
    end 
end 
  
bindKey ("V", "down", open) 

Link to comment
Intento esto.
  
  
function open() 
    if getKeyState( "lctrl" ) == true or getKeyState( "rctrl" ) == true then 
        if ( guiGetVisible ( Windvip ) == true ) then 
            guiSetVisible ( Windvip, false ) 
            showCursor(false) 
            else               
            guiSetVisible ( Windvip, true ) 
            showCursor(true) 
        end 
    end 
end 
  
bindKey ("V", "down", open) 

Si Me Sirvio Muchas Gracias FraN y Solid :D

Link to comment
  • Recently Browsing   0 members

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