Feature/voice chat

This commit is contained in:
VegaZ
2019-04-25 17:30:03 +02:00
parent 00dfb1180e
commit 70ecf92532
3 changed files with 111 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
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);
}
}
}