This commit is contained in:
2021-04-07 22:29:47 +02:00
parent 51d9f640b2
commit a63185768c

View File

@@ -4,6 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using GTANetworkAPI; using GTANetworkAPI;
using Newtonsoft.Json; using Newtonsoft.Json;
using ReallifeGamemode.Server.Managers;
namespace ReallifeGamemode.Server.Util namespace ReallifeGamemode.Server.Util
{ {
@@ -95,8 +96,15 @@ namespace ReallifeGamemode.Server.Util
{ {
player.ClearAnimation(); player.ClearAnimation();
if (checkTransition) if (checkTransition)
{
AnimPairTransition(player); AnimPairTransition(player);
} }
else
{
player.ClearAttachments();
PositionManager.cuffPoints.Remove(player);
}
}
[ServerEvent(Event.PlayerWeaponSwitch)] [ServerEvent(Event.PlayerWeaponSwitch)]
public void OnPlayerWeaponSwitch(Player player, WeaponHash oldWeapon, WeaponHash newWeapon) public void OnPlayerWeaponSwitch(Player player, WeaponHash oldWeapon, WeaponHash newWeapon)