ShowNameTags

From SA-MP Wiki

Jump to: navigation, search

ShowNameTags


This functions allows you to toggle the drawing of player nametags, healthbars and armor bars which display above their head. 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.


Parameters:
(enabled)
enabledDo you want to show player's nametags(1), or should they be hidden(0)?
This function does not return a specific value, it's best to simply ignore it.


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 might be useful as well, as they're related to this function in one way or another.

Personal tools