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