public static void removeAllSigns() { try { //for (int i = roadSignsDropped.Count - 1; i >= 0; i--) //{ // // some code // // safePendingList.RemoveAt(i); // if (roadSignsDropped[i].Exists()) // { // roadSignsDropped[i].Delete(); // } // roadSignsDropped.RemoveAt(i); //} foreach (Tuple <Rage.Object, Rage.Object, Ped> coneset in RoadSignsWithInvisWallsAndPeds.ToArray()) { if (coneset.Item1.Exists()) { coneset.Item1.Delete(); } if (coneset.Item2.Exists()) { coneset.Item2.Delete(); } if (coneset.Item3.Exists()) { coneset.Item3.Delete(); } RoadSignsWithInvisWallsAndPeds.Remove(coneset); } for (int i = speedZones.Count - 1; i >= 0; i--) { // some code // safePendingList.RemoveAt(i); World.RemoveSpeedZone(speedZones[i]); speedZones.RemoveAt(i); } Game.LogTrivial("All signs removed"); } catch (Exception e) { } }