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

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