24 lines
517 B
TypeScript
24 lines
517 B
TypeScript
/// <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;
|
|
}
|
|
}
|
|
});
|