Jump to content

Question Remove bindKey


boro

Recommended Posts

Hi all i have compiled script and this script have some bind keys. Is any way to cancel bindKey ?

I try this but it dont work, panel is still showed..

function cancelbind ( player, key, keyState ) 
     cancelEvent () 
end 
bindKey ( player, "f1", "down", cancelbind )   

Link to comment

Hm i try it but it still dont work

function dontshowpanel( player ) 
    unbindKey ( player, "F1", "down", dontshowpanel ) 
end 
  
function playerSpawn ( ) 
    bindKey ( source, "F1", "down", dontshowpanel ) 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(), playerSpawn ) 

Link to comment
  • 6 years later...

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