This commit is contained in:
2021-04-07 01:51:15 +02:00
parent e4d6ebb1f2
commit 4ef97cff7c
5 changed files with 16 additions and 9 deletions

View File

@@ -6,7 +6,8 @@
//https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes
const player = mp.players.local;
import { Key } from '../game';
import BetterBindings from 'ragemp-better-bindings';
export default function keys(globalData: IGlobalData) {
var showGui = true;
@@ -140,12 +141,10 @@ export default function keys(globalData: IGlobalData) {
mp.gui.takeScreenshot(new Date().toLocaleDateString(), 1, 100, 80);
});
setInterval(() => {
if (mp.keys.isDown(17) && mp.keys.isDown(72)) { //CTRL + H
mp.events.call("keyPress:ControllH"); //hup
return;
}
}, 100);
BetterBindings.bind('ctrl + g', () => {
mp.events.call("keyPress:ControllH"); //hup
return;
});
//F2 //Noclip
mp.keys.bind(0x71, false, () => {