ShowNameTags

Description

Toggle the drawing of nametags, health bars and armor bars above players.

NameDescription
enabled0 to disable, 1 to enable (enabled by default).

Returns

This function does not return any specific values.

Examples

public OnGameModeInit()
{
// This will fully disable all player nametags
// (including health and armour bars)
ShowNameTags(0);
}

Notes

warning

This function can only be used in OnGameModeInit. For other times, see ShowPlayerNameTagForPlayer.

Related Functions