SetPlayerVoiceEnabled

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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