Files
reallife-gamemode/ReallifeGamemode.Server/Events/Voice.cs
2019-07-17 19:52:55 +02:00

26 lines
572 B
C#

using GTANetworkAPI;
/**
* @overview Life of German Reallife - Event Voice (Voice.cs)
* @author Zeuto
* @copyright (c) 2008 - 2019 Life of German
*/
namespace ReallifeGamemode.Server.Events
{
class Voice : Script
{
[RemoteEvent("CLIENT:AddVoiceListener")]
public void AddPlayerVoiceListenerEvent(Client player, Client target)
{
player.EnableVoiceTo(target);
}
[RemoteEvent("CLIENT:RemoveVoiceListener")]
public void RemovePlayerVoiceListenerEvent(Client player, Client target)
{
player.DisableVoiceTo(target);
}
}
}