Skip to content
M2O Scripting APIScripting reference
Global objectClient APIGenerated

Nametags

const Nametags: object

Defined in: client/api.d.ts:2808

The local player’s view of the nametags above other players: whether they draw at all, and whether they carry a health bar.

isHealthVisible(): boolean

Checks whether this player draws health bars on nametags.

boolean

True unless they were hidden locally.

isVisible(): boolean

Checks whether this player draws nametags.

boolean

True unless they were hidden locally.

setHealthVisible(visible): void

Shows or hides the health bar on all nametags for this player only, leaving the names alone.

boolean

True to draw the health bar under each name, false to hide it.

void

setVisible(visible): void

Shows or hides all nametags for this player only. A player hidden with Player.setNametagVisible stays hidden either way.

boolean

True to draw nametags, false to hide every one of them.

void