From be8596327d8dc0af8d79211eae323bd2e9948e8b Mon Sep 17 00:00:00 2001 From: hydrant Date: Fri, 8 May 2020 15:43:17 +0200 Subject: [PATCH] kein duty wenn in fahrzeug --- ReallifeGamemode.Server/Events/Key.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Events/Key.cs b/ReallifeGamemode.Server/Events/Key.cs index 3a1751a6..4119d341 100644 --- a/ReallifeGamemode.Server/Events/Key.cs +++ b/ReallifeGamemode.Server/Events/Key.cs @@ -195,7 +195,7 @@ namespace ReallifeGamemode.Server.Events JailReleasePoint nearestJailReleasePoint = PositionManager.JailReleasePoints.Find(j => j.Position.DistanceTo(player.Position) <= 1.6 && (user.FactionId == 1 || user.FactionId == 3) && user.GetData("duty")); - if (nearestDuty != null)// Duty Point + if (nearestDuty != null && !player.InVehicle)// Duty Point { var nameTagColor = new Color(0, 0, 0); var factionId = user.FactionId;