SetPlayerVoiceLevel
Puts a player at one of the voice levels.
As if they picked it themselves - their range, their HUD’s line - but without asking OnPlayerVoiceLevelChange. Use it
to restore a saved choice in OnPlayerConnect, or to make a guard shout.
Syntax
Section titled “Syntax”SetPlayerVoiceLevel(pid, level)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
level |
number|string | a number from 1 or a level’s name |
Returns
Section titled “Returns”boolean: false for an unknown player or level
Example
Section titled “Example”SetPlayerVoiceLevel(pid, "Whisper")See also
Section titled “See also”GetPlayerVoiceLevel · SetVoiceLevels · the Voice chat group of the index
