Start Medic System / FactionInteraction

This commit is contained in:
VegaZ
2018-12-27 22:21:59 +01:00
parent 4ea09f0034
commit 5c84dc177d
10 changed files with 210 additions and 15 deletions

View File

@@ -6,7 +6,6 @@
//https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes
var chat = false;
var showInventory = false;
var showGui = true;
var showInv = false;
@@ -22,12 +21,31 @@ mp.keys.bind(0x0D, false, function () {
//LEFT ARROW (Interaktion mit anderen Spielern)
mp.keys.bind(0x25, false, function () {
if (!globalData.InChat && !showInv && !globalData.PlayerInteraction) {
mp.events.callRemote("keyPress:LEFT_ARROW");
if (!globalData.InChat && !showInv && !globalData.Interaction) {
mp.events.callRemote("keyPress:LEFT_ARROW");
}
});
//UP ARROW (Interaktion mit anderen Spielern)
mp.keys.bind(0x26, false, function () {
if (!globalData.InChat && !showInv && !globalData.Interaction) {
mp.events.callRemote("keyPress:UP_ARROW");
}
});
//RIGHT ARROW (Interaktion mit anderen Spielern)
mp.keys.bind(0x27, false, function () {
if (!globalData.InChat && !showInv && !globalData.Interaction) {
mp.events.callRemote("keyPress:RIGHT_ARROW");
}
});
//DOWN ARROW (Interaktion mit anderen Spielern)
mp.keys.bind(0x28, false, function () {
if (!globalData.InChat && !showInv && !globalData.Interaction) {
mp.events.callRemote("keyPress:DOWN_ARROW");
}
});
//F7 //Unshowalles
mp.keys.bind(0x76, false, function () {
if (showGui === true) {