Ragemp-roleplay-skript/Death/Death.js
2019-04-16 13:59:07 +02:00

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;
}
}
});