SetPlayerVoiceEnabled

From Onset Developer Wiki
Revision as of 14:46, 26 June 2021 by FlyingFork (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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