diff --git a/SceneManager/Utils/ConsoleCommands.cs b/SceneManager/Utils/ConsoleCommands.cs index 9acea7d..a82555d 100644 --- a/SceneManager/Utils/ConsoleCommands.cs +++ b/SceneManager/Utils/ConsoleCommands.cs @@ -3,7 +3,6 @@ using Rage.Attributes; using Rage.ConsoleCommands.AutoCompleters; using System.Linq; using System; -using System.Collections.Generic; using SceneManager.Managers; using SceneManager.Paths; @@ -67,5 +66,14 @@ namespace SceneManager.Utils ped.Delete(); } } + + [ConsoleCommand("GetNumberOfVehiclesOnPath")] + internal static void Command_GetNumberOfVehiclesOnPath() + { + foreach(Path path in PathManager.Paths.Where(x => x != null)) + { + Game.LogTrivial($"Path \"{path.Name}\" has {path.CollectedPeds.Count} collected peds."); + } + } } }