Jump to content

HELP MTA can Use "lalt + e"? HELP


crazyde21

Recommended Posts

im ok , then my lua is

function playerPressedKey(button, press) 
 if not(press) and button=='lalt'  then 
 triggerEvent ( "uncallQ", root ) 
  triggerEvent ( "uncallE", root ) 
 end 
    if (press) and button=='lalt'  then  
 triggerEvent ( "callQ", root ) 
 triggerEvent ( "callE", root ) 
    end 
    end 
addEventHandler("onClientKey", root, playerPressedKey) 
  

and

addEvent ( "callQ", true ) 
addEventHandler ( "callQ", root, function()   
bindKey ( "q", "down", bindQ )  
end ) 
addEvent ( "uncallQ", true ) 
addEventHandler ( "uncallQ", root, function()   
unbindKey ( "q", "down", bindQ )  
end ) 
    function bindQ (  ) 
         if ( guiGetVisible ( mission2.window[1] ) == true ) then             
                guiSetVisible ( mission2.window[1], false )  
                    showCursor( false ) 
        else               
        triggerServerEvent("checkzt",getLocalPlayer(),getLocalPlayer()) 
         guiSetVisible ( mission2.window[1], true )  
    showCursor( true ) 
        end 
     end 

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