Handsup: Nur noch möglich, wenn man still steht
This commit is contained in:
13
ReallifeGamemode.Client/Player/handsup.ts
Normal file
13
ReallifeGamemode.Client/Player/handsup.ts
Normal 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");
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user