Jump to content

[Help] Simple problem


BieHDC

Recommended Posts

I have a easy question. I wanna use a combined key shortcut (rshift + #) to open a panel, but i cant find how to make this.

Here is the Code for bind:

if isPlayerAdmin ( player ) then 
    bindKey ( player, "rshift + #", "down", isPlayerAdmins ) 
end 

AND the same for unbind:

unbindKey ( source, "rshift + #", "down", isPlayerAdmins ) 

Link to comment

Maybe like this :

addEventHandler( 'onClientRender', getRootElement( ), function( ) 
    if getKeyState( 'lshift' ) then 
        bindKey( '#', 'down', YourFunction ); 
    else 
        unbindKey( '#', 'down', YourFunction ); 
    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...