SetPlayerVoiceEnabled: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
No edit summary
 
Line 9: Line 9:
{{FuncParam|bEnable|The boolean enable status.}}
{{FuncParam|bEnable|The boolean enable status.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns '''true''' if the change was succesfull, otherwise '''false'''.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
SetPlayerVoiceEnabled(player, false) -- mute
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{Template:VoiceFunctions}}
{{Template:VoiceFunctions}}

Latest revision as of 14:46, 26 June 2021

SetPlayerVoiceEnabled

Type: Function
Context: Server
Introduced: v1.0

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

See also