From de96f29097be412be09df722c0baab109bd2e328 Mon Sep 17 00:00:00 2001 From: oldnapalm <38410858+oldnapalm@users.noreply.github.com> Date: Fri, 14 Jul 2023 09:39:06 -0300 Subject: [PATCH] Don't delete peds in vehicle --- RageCoop.Client/Sync/EntityPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RageCoop.Client/Sync/EntityPool.cs b/RageCoop.Client/Sync/EntityPool.cs index 508acf4..6bc2022 100644 --- a/RageCoop.Client/Sync/EntityPool.cs +++ b/RageCoop.Client/Sync/EntityPool.cs @@ -365,7 +365,7 @@ namespace RageCoop.Client SyncedPed c = GetPedByHandle(p.Handle); if (c == null && (p != Game.Player.Character)) { - if (allPeds.Length > Main.Settings.WorldPedSoftLimit && p.PopulationType == EntityPopulationType.RandomAmbient) + if (allPeds.Length > Main.Settings.WorldPedSoftLimit && p.PopulationType == EntityPopulationType.RandomAmbient && !p.IsInVehicle()) { p.Delete(); continue;