20 lines
602 B
JavaScript
20 lines
602 B
JavaScript
"use strict";
|
|
/// <reference path="../../types-gt-mp/index.d.ts" />
|
|
var blip = null;
|
|
API.onServerEventTrigger.connect(function (eventName, args) {
|
|
if (eventName == "showNotrufblip") {
|
|
if (blip == null) {
|
|
var location = args[0];
|
|
blip = API.createBlip(location);
|
|
API.setBlipSprite(blip, 280);
|
|
API.setBlipColor(blip, 75);
|
|
API.setBlipRouteVisible(blip, true);
|
|
}
|
|
}
|
|
else if (eventName == "destroyNotrufblip") {
|
|
if (blip != null) {
|
|
API.deleteEntity(blip);
|
|
blip = null;
|
|
}
|
|
}
|
|
});
|