Handsup: Nur noch möglich, wenn man still steht

This commit is contained in:
hydrant
2021-04-22 13:52:05 +02:00
parent be5dc8c8ca
commit e669425dd8
6 changed files with 32 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
export default function handsup() {
mp.events.add("SERVER:Handsup_CheckIfPlayerCanHandsup", () => {
var player = mp.players.local;
var isStopped = player.isStopped();
mp.gui.chat.push("isStopped = " + isStopped);
if (isStopped) {
mp.events.callRemote("CLIENT:Handsup_TogglePlayerHup");
}
});
}

View File

@@ -265,6 +265,9 @@ antiAfk(globalData);
import ammunation from './Interaction/ammunation/ammunation';
ammunation(globalData);
import handsup from './Player/handsup';
handsup();
require('./Gui/policedepartment');
require('./Gui/helptext');
require('./admin/spectate');