From 145fb713a118f9c1d3299c619af446e2a010c707 Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 3 May 2020 16:24:18 +0200 Subject: [PATCH 1/2] reeeeeeeeeeeeeeee --- ReallifeGamemode.Server/Managers/TuningManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ReallifeGamemode.Server/Managers/TuningManager.cs b/ReallifeGamemode.Server/Managers/TuningManager.cs index 4430f782..94b64cf0 100644 --- a/ReallifeGamemode.Server/Managers/TuningManager.cs +++ b/ReallifeGamemode.Server/Managers/TuningManager.cs @@ -27,6 +27,8 @@ namespace ReallifeGamemode.Server.Managers /// Die Position der Garage public static void AddTuningGarage(Vector3 pos) { + NAPI.Blip.CreateBlip(446, pos, 1f, 4, "Los Santos Customs", shortRange: true); + ColShape colShape = NAPI.ColShape.CreateSphereColShape(pos, 5, 0); colShape.OnEntityEnterColShape += (cs, c) => From f441f3ad6e6ad7e7c5d0122a45a8fa9265ef2bed Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 3 May 2020 16:32:42 +0200 Subject: [PATCH 2/2] =?UTF-8?q?haus=20l=C3=B6schen=20mahlzeit=20moin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReallifeGamemode.Server.Core/Managers/HouseManager.cs | 1 + ReallifeGamemode.Server/Managers/TuningManager.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server.Core/Managers/HouseManager.cs b/ReallifeGamemode.Server.Core/Managers/HouseManager.cs index c1dd3fae..182e16fb 100644 --- a/ReallifeGamemode.Server.Core/Managers/HouseManager.cs +++ b/ReallifeGamemode.Server.Core/Managers/HouseManager.cs @@ -192,6 +192,7 @@ namespace ReallifeGamemode.Server.Core.Managers .Include(h => h.Owner) .Include(h => h.BankAccount) .Include(h => h.Rentals) + .ToList() .OrderBy(h => h.Position.DistanceTo(position)) .FirstOrDefault(); } diff --git a/ReallifeGamemode.Server/Managers/TuningManager.cs b/ReallifeGamemode.Server/Managers/TuningManager.cs index 94b64cf0..d8f8268e 100644 --- a/ReallifeGamemode.Server/Managers/TuningManager.cs +++ b/ReallifeGamemode.Server/Managers/TuningManager.cs @@ -37,7 +37,7 @@ namespace ReallifeGamemode.Server.Managers if (c.IsInVehicle && c.VehicleSeat == 0) { Vehicle v = c.Vehicle; - if (v.GetServerVehicle() is FactionVehicle fV && fV.GetOwners().TrueForAll(fV => dbContext.Factions.Where(f => f.Id == fV).First().StateOwned)) + if (v.GetServerVehicle() is FactionVehicle fV && fV.GetOwners().Any(fV => dbContext.Factions.Where(f => f.Id == fV && f.StateOwned).Any())) { return; }