Testserver push
This commit is contained in:
@@ -6,11 +6,9 @@
|
||||
|
||||
//https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes
|
||||
|
||||
|
||||
const player = mp.players.local;
|
||||
|
||||
export default function keys(globalData: IGlobalData) {
|
||||
|
||||
var showGui = true;
|
||||
|
||||
//ENTER
|
||||
@@ -73,7 +71,6 @@ export default function keys(globalData: IGlobalData) {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//I //Inventar
|
||||
mp.keys.bind(0x49, false, function () {
|
||||
if (!globalData.InChat && !globalData.InTuning) {
|
||||
@@ -83,9 +80,9 @@ export default function keys(globalData: IGlobalData) {
|
||||
|
||||
//O //Spielerliste
|
||||
mp.keys.bind(0x4F, true, function () {
|
||||
if (!globalData.InChat && !globalData.InTuning ) {
|
||||
if (!globalData.InChat && !globalData.InTuning) {
|
||||
mp.events.callRemote("keyPress:O");
|
||||
//mp.events.call("showPlayerlist");
|
||||
//mp.events.call("showPlayerlist");
|
||||
}
|
||||
});
|
||||
|
||||
@@ -113,7 +110,7 @@ export default function keys(globalData: IGlobalData) {
|
||||
//N //Motor Starten
|
||||
mp.keys.bind(0x4E, false, function () {
|
||||
if (!globalData.InChat) {
|
||||
mp.events.callRemote("keyPress:N");
|
||||
mp.events.callRemote("keyPress:N");
|
||||
}
|
||||
});
|
||||
|
||||
@@ -143,9 +140,16 @@ export default function keys(globalData: IGlobalData) {
|
||||
mp.gui.takeScreenshot(new Date().toLocaleDateString(), 1, 100, 80);
|
||||
});
|
||||
|
||||
//H
|
||||
mp.keys.bind(0x48, false, function () {
|
||||
if (mp.keys.isDown(0x11)) { //CTRL
|
||||
mp.events.call("keyPress:ControllH"); //hup
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
//F2 //Noclip
|
||||
mp.keys.bind(0x71, false, () => {
|
||||
mp.events.callRemote("Noclip");
|
||||
|
||||
mp.events.callRemote("Noclip");
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user