SetPlayerVoiceEnabled

From Onset Developer Wiki
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