48 lines
1.5 KiB
JavaScript
48 lines
1.5 KiB
JavaScript
// -
|
|
// - Sprechwunsch Variablen
|
|
// -
|
|
var Jails = [];
|
|
var JailRegEx = /\(Freie Zellen\:\s+(\d)\,\s+Entfernung\:\s+(\d+\,\d+)\s+km(?:\,\s+Abgabe an Besitzer\:\s+(\d+)%)?\)/g;
|
|
var Hospitals = [];
|
|
var RescueVehicleFrameWatchDog;
|
|
var PoliceVehicleFrameWatchDog;
|
|
|
|
|
|
// -
|
|
// - Sprechwunsch Queue
|
|
// -
|
|
|
|
function ADis_RemovePoliceSprechwunschFromQueue(WunschID) {
|
|
console.log('ADis_RemovePoliceSprechwunschFromQueue:', WunschID, typeof WunschID);
|
|
return ADisDB.ADisSprechwunschPolice.where({
|
|
missionID: WunschID
|
|
}).delete();
|
|
}
|
|
function ADis_RemoveRescueSprechwunschFromQueue(WunschID) {
|
|
console.log('ADis_RemoveRescueSprechwunschFromQueue:', WunschID, typeof WunschID);
|
|
return ADisDB.ADisSprechwunsch.where({
|
|
vehicleID: WunschID
|
|
}).delete();
|
|
}
|
|
|
|
// -
|
|
// - Sprechwunsch Opener
|
|
// -
|
|
if (window.location.pathname === "/" || window.location.pathname === "/#") {
|
|
//=require sprechwunsch/rescue-opener.js
|
|
//=require sprechwunsch/police-opener.js
|
|
}
|
|
|
|
// -
|
|
// - Sprechwunsch Handler Rettung
|
|
// -
|
|
if (window.location.pathname.indexOf("/vehicles/") !== -1 && window.name == 'adis-sprechwunsch-rescue') {
|
|
//=require sprechwunsch/rescue-handler.js
|
|
}
|
|
|
|
// -
|
|
// - Sprechwunsch Handler Polizei/Gefangene
|
|
// -
|
|
if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') {
|
|
//=require sprechwunsch/police-handler.js
|
|
} |