[+] Add Gangwar System (bugs incl.)

This commit is contained in:
Lukas Moungos
2020-01-13 21:43:55 +01:00
parent 3b0189807e
commit e8321e3ec3
10 changed files with 246 additions and 85 deletions

View File

@@ -76,7 +76,7 @@ export default function keys(globalData: GlobalData) {
//E
mp.keys.bind(0x45, false, function () {
if (!globalData.InChat) {
if (!globalData.InChat && !globalData.InMenu) {
mp.events.callRemote("keyPress:E");
}
});
@@ -95,8 +95,8 @@ export default function keys(globalData: GlobalData) {
});
//O //Spielerliste
mp.keys.bind(0x4F, false, function () {
if (!globalData.InChat && !globalData.InMenu) {
mp.keys.bind(0x4F, true, function () {
if (!globalData.InChat && !globalData.InMenu && !globalData.InTuning && !showInv) {
mp.events.callRemote("keyPress:O");
//mp.events.call("showPlayerlist");
}