DisablePlayerVoiceTo: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Disables the voice transmission to a target.<br/> Use EnablePlayerVoiceTo to enable it.<br/> To use the voice-chat you can activate it in the Server_settings. {{CShar...")
 
No edit summary
 
Line 4: Line 4:
To use the voice-chat you can activate it in the [[Server_settings]].
To use the voice-chat you can activate it in the [[Server_settings]].
{{CSharpContainer|
{{CSharpContainer|
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.DisablePlayerVoiceTo(Client player, Client target);}}
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.DisablePlayerVoiceTo(Player player, Player target);}}


{{Parameters}}
{{Parameters}}
*'''player:''' Parameter input should be in '''Client''' type.
*'''player:''' Parameter input should be in '''Player''' type.
*'''target:''' Parameter input should be in '''Client''' type.
*'''target:''' Parameter input should be in '''Player''' type.


{{Example}}
{{Example}}

Latest revision as of 19:44, 22 December 2022

Disables the voice transmission to a target.
Use EnablePlayerVoiceTo to enable it.

To use the voice-chat you can activate it in the Server_settings.

C# Syntax

void NAPI.Player.DisablePlayerVoiceTo(Player player, Player target);

Parameters

  • player: Parameter input should be in Player type.
  • target: Parameter input should be in Player type.

Example

NAPI.Player.DisablePlayerVoiceTo(player, target);