IsPlayerNametagShowing
Jump to navigation
Jump to search
This function will allow you to determine if a player's name tag is currently showing.
Syntax
bool isPlayerNametagShowing ( player thePlayer )
Required Arguments
- thePlayer: The player whose current name tag condition you want to check
Returns
Returns true if the player's name tag is showing, false otherwise.
Example
This example does...
addCommandHandler ( "nametagstatus", "outputTagStatus" ) function outputTagStatus ( player, commandName ) tagstatus = isPlayerNametagShowing ( player ) --Asks if the commandhandler activator's tag is showing and stores --it to tagstatus as true or false if tagstatus == true then outputChatBox ( "Your tag is visible" ) --output that name tag is showing because tagstatus is true else outputChatBox ( "Your tag is not visible" ) --output that name tag is not showing because tagstatus is false end end
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState
-- leave this unless you complete the function