It opens a UI which tells the player, that he is not connected with TeamSpeak. On connect, the UI will disappear - on disconnect, the UI will appear.
- Download GitHub Repository
- Extract the files and upload them to your server
- Open your server.cfg and add "start SaltyNUI". Make sure it starts after the SaltyChat Plugin.
- Open the SaltyChat C# solution in Visual Studio
- Open SaltyClient/VoiceManager.cs
- Go to Line ~640 and add the following to the onMessage Event:
if (this.PlguinState == GameInstanceState.Ingame){ BaseScript.TriggerEvent("SaltyNUI:TsActive"); }else{ BaseScript.TriggerEvent("SaltyNUI:TsNotActive"); }- Go to Line ~500 and add the following to the OnDisconnected Event:
BaseScript.TriggerEvent("SaltyNUI:TsNotActive")- Compile SaltyChat
- Reupload SaltyChat to your server
- Open the SaltyChat C# solution in Visual Studio
- Open SaltyClient/VoiceManager.cs
- Go to Line ~564 and add the following to the onMessage Event:
if(instanceState.IsReady){ BaseScript.TriggerEvent("SaltyNUI:TsActive");$ }else{ BaseScript.TriggerEvent("SaltyNUI:TsNotActive"); }- Go to Line ~500 and add the following to the OnDisconnected Event:
BaseScript.TriggerEvent("SaltyNUI:TsNotActive")- Compile SaltyChat
- Reupload SaltyChat to your server
- Open the SaltyChat C# solution in Visual Studio
- Open SaltyClient/VoiceManager.cs
- Go to Line ~560 and add the following under "if (pluginCommand.TryGetPayload(out PluginState pluginState))":
if(pluginState.IsReady){ BaseScript.TriggerEvent("SaltyNUI:TsActive"); }else{ BaseScript.TriggerEvent("SaltyNUI:TsNotActive"); }- Go to Line ~500 and add the following to the OnDisconnected Event:
BaseScript.TriggerEvent("SaltyNUI:TsNotActive") - Compile SaltyChat
- Reupload SaltyChat to your server
