21 lines
528 B
JavaScript
21 lines
528 B
JavaScript
"use strict";
|
|
/// <reference path="../../types-gt-mp/index.d.ts" />
|
|
var showDeathScreen = false;
|
|
API.onUpdate.connect(function () {
|
|
if (showDeathScreen == true) {
|
|
//API.startAudio("", false);
|
|
}
|
|
else {
|
|
API.stopAudio();
|
|
}
|
|
});
|
|
API.onServerEventTrigger.connect(function (eventName, args) {
|
|
if (eventName == "triggerKrankenhausfenster") {
|
|
if (showDeathScreen == false) {
|
|
showDeathScreen = true;
|
|
}
|
|
else {
|
|
showDeathScreen = false;
|
|
}
|
|
}
|
|
});
|