[HOTFIX] fix weapon in hup
This commit is contained in:
@@ -133,11 +133,14 @@ export default function animationSync() {
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", false);
|
||||
}
|
||||
|
||||
const blockInputControls = [12, 13, 14, 15, 22, 24, 25, 37, 261, 262];
|
||||
|
||||
mp.events.add("render", () => {
|
||||
mp.gui.chat.push("blockInput = " + blockInput);
|
||||
if (blockInput) {
|
||||
mp.game.controls.disableControlAction(32, 25, true);
|
||||
mp.game.controls.disableControlAction(32, 24, true);
|
||||
mp.game.controls.disableControlAction(32, 22, true);
|
||||
blockInputControls.forEach((ctrl) => {
|
||||
mp.game.controls.disableControlAction(32, ctrl, true);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -433,6 +433,7 @@ namespace ReallifeGamemode.Server.Extensions
|
||||
return;
|
||||
|
||||
player.SyncAnimation("hup");
|
||||
NAPI.Player.SetPlayerCurrentWeapon(player, WeaponHash.Unarmed);
|
||||
|
||||
if (player.GetUser().Wanteds > 0)
|
||||
PositionManager.cuffPoints.Add(player);
|
||||
|
||||
Reference in New Issue
Block a user