ShowNameTags

From SA-MP Wiki

Jump to: navigation, search


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


Parameters:
(enabled)
enabled0 to disable, 1 to enable.


ReturnsThis function doesn't return a specific value


Image:32px-Circle-style-warning.png Important Note: This function can only be used in OnGameModeInit. For use of a similar function like this in the whole gamemode, check out the ShowPlayerNameTagForPlayer function.


public OnGameModeInit()
{
    // We're creating a sniper-based gamemode now, so we don't want players to
    // see any nametags. Fully disable them:
    ShowNameTags(0);
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools