TogglePlayerTag

From Onset Developer Wiki
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__