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");
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user