Перейти к содержанию

EnablePlayerVoiceTo

Материал из RAGE MP Wiki Archive
Версия от 19:44, 22 декабря 2022; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Enables the voice transmission to a target.
Use DisablePlayerVoiceTo to disable it again.

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

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

Parameters

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

Example

<syntaxhighlight lang="csharp"> NAPI.Player.EnablePlayerVoiceTo(player, target); </syntaxhighlight>