SetPlayerVoiceTone

From Onset Developer Wiki
Revision as of 16:01, 8 March 2020 by BlueMountains (talk | contribs)
SetPlayerVoiceTone

Type: Function
Context: Client
Introduced: v1.1.0

Description

Switches the player voice tone.

Syntax

SetPlayerVoiceTone(playerId, VoiceTone)

Parameters

  • playerId
    The player identifier.
  • VoiceTone
    male or female.

Return Value

  • Returns true on success.

Example

-- If male
SetPlayerVoiceTone(GetPlayerId(), "male")

-- If female
SetPlayerVoiceTone(GetPlayerId(), "female")

See also

_EDIT_ME_