This commit is contained in:
kookroach
2021-04-04 23:02:45 +02:00
parent 1a89e96052
commit d2920f5c87
2 changed files with 6 additions and 9 deletions

View File

@@ -9,17 +9,10 @@ export default function playerBlips() {
mp.events.add("entityStreamIn", (entity) => {
if (entity.type === "player") {
var entityMp = <EntityMp>entity;
let color = parseInt(entity.getVariable("blipColor"));
entity.createBlip(1);
var blip = entity.blip;
entity.setBlipColor(isNaN(color) ? 0 : color);
mp.game.invoke(Natives.SET_BLIP_CATEGORY, entity.blip, 7);
@@ -31,7 +24,12 @@ export default function playerBlips() {
});
mp.events.add("entityStreamOut", (entity) => {
if (entity.type === "player") {
var blip = <BlipMp>entity.blip
blip.destroy();
}
});
mp.events.addDataHandler("blipColor", (entity, value) => {
if (entity.type === "player") {

View File

@@ -97,7 +97,6 @@ public static class AttachmentSync
}
}
entity.ResetSharedData("attachmentsData");
entity.SetData("Attachments", new List<uint>());
}