TogglePlayerTag

From Onset Developer Wiki
Revision as of 23:48, 9 March 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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__