19 lines
No EOL
587 B
TypeScript
19 lines
No EOL
587 B
TypeScript
/// <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;
|
|
}
|
|
}
|
|
}); |