@@ -13,6 +13,9 @@ namespace ReallifeGamemode.Server.Util
|
||||
|
||||
public static void SyncAnimation(this Player player, dynamic animationName)
|
||||
{
|
||||
if (player.IsInVehicle)
|
||||
return;
|
||||
|
||||
if (!player.HasData("Animation"))
|
||||
player.SetData("Animation", String.Empty);
|
||||
|
||||
@@ -71,6 +74,7 @@ namespace ReallifeGamemode.Server.Util
|
||||
if (!player.HasData("Animation"))
|
||||
return;
|
||||
|
||||
player.ClearAttachments();
|
||||
player.ResetData("Animation");
|
||||
player.ResetSharedData("AnimationData");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user