Sign in to follow this  
CancerKid

Keybinds not working?

Recommended Posts

Hey guys.

 

I might need some Help from you.

The Problem is: all Keybinds im creating in my code won't work. The keybinds from other scripts from other programmers work.

I don't know where the issue could be.

Maybe you could help me

unknown.png

Share this post


Link to post
Share on other sites

Have you tried to comment everything else and just log some simple text to see if the key event is firing at all? We can't really know whats happening in your 'vehicleui.Open()' method. Just try this one:
 

mp.keys.bind(0x90, false, () => {
	mp.gui.chat.push("test");
});

if it works then it's your "vehicleui" at fault. If it doesn't then you need to make sure you're addressing the right key or perhaps your keyboard may not be supporting it. There is also one more possibility - the 'x' char you see at '0x90' may not be the english one. My keyboard langs for example are cyrillic <-> english and our 'х' is not the same as the english one.

Edited by Doom

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.