kein duty wenn in fahrzeug

This commit is contained in:
hydrant
2020-05-08 15:43:17 +02:00
parent 77defc95ce
commit be8596327d

View File

@@ -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<bool>("duty"));
if (nearestDuty != null)// Duty Point
if (nearestDuty != null && !player.InVehicle)// Duty Point
{
var nameTagColor = new Color(0, 0, 0);
var factionId = user.FactionId;