ShowNameTags
From SA-MP Wiki
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.
(enabled)
| enabled | Do 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.
- DisableNameTagLOS: Disable nametag Line-Of-Sight checking.
- ShowPlayerNameTagForPlayer: Show or hide a nametag for a certain player.
- ShowPlayerMarkers: Decide if the server should show markers on the radar.
