Jump to content

Recommended Posts

Posted (edited)

Hey developers,

I've created a small node-module, to make it easier to create key-binds (also multiple keys).

For example, you are able to do this:

keyBinder.bind('ctrl+n', () => {
    mp.gui.chat.push("Ctrl+N");
});

The last key in the chain (a+b+c+d) can be any key and all the other keys have to be 'modifiers'.

By default ctrl, alt, and shift are modifiers. So you can create combinations like: 'shift+ctrl+k'.

For more information please take a look into the repositorie's readme: https://github.com/araynimax/ragemp-better-binding

As mentioned I've published this module to npm so you can easily import it into your projects with

`npm install ragemp-better-bindings` or `yarn add ragemp-better-bindings`.

If you don't use npm right now, just download it from the download section: 

 

 

If you find bugs or if you have improvement suggestions feel free to message me, or just comment in this post.

Edited by araynimax
  • 2 weeks 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...