This commit is contained in:
hydrant
2021-05-27 23:55:47 +02:00
parent ac48387b4c
commit 099f322fa9

View File

@@ -335,7 +335,8 @@ export default function hanfSystem(globalData: IGlobalData) {
mp.events.addDataHandler("hanfData", (entity: EntityMp, value) => {
mp.gui.chat.push("neue hanf data");
if (entity == mp.players.local) {
if (entity.type == 'player' && entity.remoteId == mp.players.local.remoteId) {
mp.gui.chat.push("eigener user");
updateHanf(value);
}
});