Evtl. fix unerklärliche async client fehler

This commit is contained in:
hydrant
2021-04-21 19:37:01 +02:00
parent d413c5c8cb
commit 4c35539b23
5 changed files with 20 additions and 11 deletions

View File

@@ -147,7 +147,7 @@ class RageEntityAttachmentPool implements IEntityAttachmentPool {
let e = new RageAttachments(entity, attachments, attachmentObjects);
this.attachmentPool.push(e);
return e;
return e;
}
at(remoteId: any): IEntityAttachments {
@@ -188,6 +188,10 @@ class RagePlayerPool implements IPlayerPool {
fn(new RagePlayer(e));
});
}
exists(entity: IPlayer): boolean {
return mp.players.exists(entity.id);
}
}
@@ -280,6 +284,10 @@ class RageVehiclePool implements IVehiclePool {
fn(new RageVehicle(e));
})
}
exists(entity: IVehicle): boolean {
return mp.vehicles.exists(entity.id);
}
}
export {
@@ -290,5 +298,5 @@ export {
RageEntityAttachmentPool,
RageVehicle,
RageVehiclePool,
}