Files
reallife-gamemode/ReallifeGamemode.Client/Player/handsup.ts

13 lines
359 B
TypeScript

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");
}
});
}