testServer

This commit is contained in:
2021-04-07 01:12:22 +02:00
parent 52bb80a70a
commit e391f86609
3 changed files with 3 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
animationSyncData.register("getArrest", "mp_arrest_paired", "crook_p2_back_right", 3760, false, 0); animationSyncData.register("getArrest", "mp_arrest_paired", "crook_p2_back_right", 3760, false, 0);
animationSyncData.register("doUncuff", "mp_arresting", "a_uncuff", 5500, false, 0); animationSyncData.register("doUncuff", "mp_arresting", "a_uncuff", 5500, false, 0);
animationSyncData.register("getUncuff", "mp_arresting", "b_uncuff", 5500, false, 0); animationSyncData.register("getUncuff", "mp_arresting", "b_uncuff", 5500, false, 0);
animationSyncData.register("hup", "mp_am_hold_up", "handsup_base", -1, true, 50); animationSyncData.register("hup", "mp_am_hold_up", "handsup_base", -1, true, 146);
animationSyncData.register("carryBox", "anim@heists@box_carry@", "idle", -1, true, 50); animationSyncData.register("carryBox", "anim@heists@box_carry@", "idle", -1, true, 50);
}); });

View File

@@ -106,6 +106,7 @@ namespace ReallifeGamemode.Server.Commands
[Command("hup")] [Command("hup")]
public void CmdAnim(Player player) public void CmdAnim(Player player)
{ {
if (player.HasAnimation("hup")) { player.StopAnimation(); }
if (player.HasAnimation()) if (player.HasAnimation())
return; return;

View File

@@ -969,6 +969,7 @@ namespace ReallifeGamemode.Server.Events
[RemoteEvent("keyPress:ControllH")] [RemoteEvent("keyPress:ControllH")]
public void KeyPressControllH(Player player) public void KeyPressControllH(Player player)
{ {
if (player.HasAnimation("hup")) { player.StopAnimation(); }
if (player.HasAnimation()) if (player.HasAnimation())
return; return;