Enemy health bar in multiplayer

Can anyone advise on how to make the enemy HP strip for multiplayer. I tried to do it through a widget that was located on the player’s screen, and it became visible when a player approached a given distance, but the problem is that another player can see this strip through the walls.