EnableVoiceTo

From GTA Network Wiki
Jump to: navigation, search

EnableVoiceTo
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Enable voice listening to a certain player.

Syntax

player.EnableVoiceTo(target)

Required Arguments

  • target: parameter input should be in Client type.

Usage examples

[Command("listento")]
public void ListenToTarget(Client player, Client target)
{
    player.EnableVoiceTo(target);
    //If you want it to be bidirectional
    target.EnableVoiceTo(player);
}

Changelog

Version Description
0.3.6 Release.