TogglePlayerTag

From Onset Developer Wiki
Revision as of 16:54, 8 March 2020 by BlueMountains (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
TogglePlayerTag

Type: Function
Context: Server & 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__