diff --git a/ReallifeGamemode.Client/drugs/hanf.ts b/ReallifeGamemode.Client/drugs/hanf.ts index cc2b28b1..8498db66 100644 --- a/ReallifeGamemode.Client/drugs/hanf.ts +++ b/ReallifeGamemode.Client/drugs/hanf.ts @@ -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); } });