ShowNameTags
From SA-MP Wiki
Toggle the drawing of player nametags, healthbars and armor bars above players.
(enabled)
| enabled | 0 to disable, 1 to enable. |
| Returns | This function doesn't return a specific value |
| 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.
- 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.
