note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
ShowNameTags
Description
Toggle the drawing of nametags, health bars and armor bars above players.
Name | Description |
---|---|
bool:show | 'false' to disable, 'true' 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(false);
}
Notes
warning
This function can only be used in OnGameModeInit. For other times, see ShowPlayerNameTagForPlayer.
tip
You can also toggle player nametags via config.json
"use_nametags": false,
Related Functions
- 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.