araynimax Posted June 26, 2019 Posted June 26, 2019 (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 June 26, 2019 by araynimax
araynimax Posted June 29, 2019 Author Posted June 29, 2019 Update 1.0.4: - Added a better way to add/remove modifiers - Fixed a bug where binding up and down to the same key didn't work - Updated the readme: https://github.com/araynimax/ragemp-better-binding
MyNameIsJeff Posted July 13, 2019 Posted July 13, 2019 (edited) How do I install this for client? Edited July 13, 2019 by MyNameIsJeff
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now