SetPlayerVoiceEnabled: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetPlayerVoiceEnabled(player, enable)}} {{FuncParameters}} {{FuncParam|player|__EDIT_ME__}} {{Func..." |
FlyingFork (talk | contribs) No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Enable a player's voice chat.}} | ||
{{FuncSyntax|SetPlayerVoiceEnabled( | {{FuncSyntax|SetPlayerVoiceEnabled(playerid, bEnable)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player | {{FuncParam|playerid|The player identifier.}} | ||
{{FuncParam|enable | {{FuncParam|bEnable|The boolean enable status.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' if the change was succesfull, otherwise '''false'''.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetPlayerVoiceEnabled(player, false) -- mute | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:VoiceFunctions}} |
Latest revision as of 14:46, 26 June 2021
Description
Enable a player's voice chat.
Syntax
SetPlayerVoiceEnabled(playerid, bEnable)
Parameters
- playerid
The player identifier. - bEnable
The boolean enable status.
Return Value
- Returns true if the change was succesfull, otherwise false.
Example
SetPlayerVoiceEnabled(player, false) -- mute