local vehicleList = this.vehicleList();
local unitnumberList = AIList();
for (local vehicle = vehicleList.Begin(); !VehicleList.IsEnd(); vehicle = vehicleList.Next()) {
if (AIVehicle.IsValidVehicle(vehicle) && AIVehicle.GetVehicleType(vehicle) == AIVehicle.VT_ROAD) {
local unitnumber = AIVehicle.GetUnitNumber(vehicle);
if (!unitnumberList.HasItem(unitnumber) {
unitnumberList.AddItem(unitnumber, vehicle);
} else {
local value = unitnumberList.GetValue(unitnumber);
if (value != vehicle) {
unitnumberList.SetValue(unitnumber, vehicle);
}
}
}
}