This commit is contained in:
2021-04-06 18:48:18 +02:00
parent 2b92e7134f
commit 4654638d9e
4 changed files with 6 additions and 27 deletions

View File

@@ -317,12 +317,9 @@ namespace ReallifeGamemode.Server.Extensions
user.Player.SetSharedData("blipColor", blipColor);
}
public static Vector3 GetInFrontOfPosition(this Player player)
public static void SetInFrontOf(this Player player, Entity entity)
{
player.ResetData("InFrontOf");
player.TriggerEvent("SERVER:GetInFrontPosition");
System.Threading.Thread.Sleep(500);
return player.GetData<Vector3>("InFrontOf");
player.TriggerEvent("SERVER:SetInFrontPosition", entity);
}
}
}