avpo
This commit is contained in:
@@ -33,16 +33,20 @@ function ADis_CollectPoliceSprechwuensche() {
|
||||
ADis_AddPoliceSprechwunschToQueue(MissionID);
|
||||
}
|
||||
});
|
||||
}).then(()=>{
|
||||
}).then(() => {
|
||||
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
||||
var VehicleStatus = $(this).find(".building_list_fms").text();
|
||||
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
||||
var VehicleID = $(this).attr("vehicle_id");
|
||||
if (VehicleStatus == "5" && [32, 52].indexOf(VehicleType) !== -1) {
|
||||
var _meap = String($('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' a:contains("Zum Einsatz")').attr('href'));
|
||||
var MissionID = _meap.substr(_meap.lastIndexOf("/") + 1);
|
||||
console.log(_meap, MissionID);
|
||||
//ADis_AddPoliceSprechwunschToQueue(MissionID);
|
||||
var map2 = $('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' a:contains("Zum Einsatz")');
|
||||
if (map2.length > 0) {
|
||||
var _meap = String(map2.attr('href'));
|
||||
var MissionID = _meap.substr(_meap.lastIndexOf("/") + 1);
|
||||
if (MissionID) {
|
||||
ADis_AddPoliceSprechwunschToQueue(MissionID);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user