TogglePlayerTag: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server & Client|1.1.0}} {{FuncDescription|Enables or disables a tag above a players head.}} {{FuncSyntax|TogglePlayerTag(player, tagname, toggle)}} {{FuncPa...")
 
No edit summary
 
Line 1: Line 1:
{{Info|Function|Server & Client|1.1.0}}
{{Info|Function|Client|1.1.0}}


{{FuncDescription|Enables or disables a tag above a players head.}}
{{FuncDescription|Enables or disables a tag above a players head.}}

Latest revision as of 23:48, 9 March 2020

TogglePlayerTag

Type: Function
Context: Client
Introduced: v1.1.0

Description

Enables or disables a tag above a players head.

Syntax

TogglePlayerTag(player, tagname, toggle)

Parameters

  • player
    The player identifier.
  • tagname
    Tag as a string. Valid tags are: 'name', 'health', 'armor', 'voice'.
  • toggle
    true to enable, false to disable.

Return Value

  • Returns true on success.

Example

TogglePlayerTag(player, "name", false)

See also

__EDIT_ME__