SaltyNUI
Discourage Users without Temspeak running when using ■■■■■■■■■!
The goal of this simple Lua scirpt is to block Player from moving & display a black screen when your Server is using the ■■■■■■■■■ System but the the Player isnt online on your Teamspeak Server similar to ■■■■■■■■’s one.
What is ■■■■■■■■■?
■■■■■■■■■ is an Open-Source Community Supported Proximity Chat system using a Teamspeak Server instead of the GTA-V Voice Chat.
It offers many features besides the Proximity Chat like Radio Channels and Private Phone Calls.
Download
How to Install?
Basic Installation
- Download the latest Release of SaltyNUI
- Rename the Downloaded Folder to “saltynui”
- Copy the Folder into your ressources/ folder
- Add
ensure saltynui
to your server.cfg and make sure the NUI is started AFTER ■■■■■■■■■.
On the Basic Installation SaltyNUI only gets triggered when u mute your Microphone. To get triggered when Player is in Wrong Server/Channel or isnt even Online you need the Advanced Installation!
Advanced Installation
For ■■■■■■■■■ 2.2.x (LATEST)
- Open the ■■■■■■■■■ C# solution in VS
- Open SaltyClient/VoiceManager.cs
- Goto Line ~640 and add
if (this.PlguinState == GameInstanceState.Ingame){
BaseScript.TriggerEvent("SaltyNUI:TsActive");
}else{
BaseScript.TriggerEvent("SaltyNUI:TsNotActive");
}
to the OnMessage Event (under case Command.InstanceState)
It should look somethings like THIS
- !!IMPORTANT!! COMPILE ■■■■■■■■■ AGAIN AND RE-UPLAOD IT!
These events gets triggered when Players close their Teamspeak Client and connect to a server / switch Channels
For ■■■■■■■■■ 2.0.x - 2.1.2
- Open the ■■■■■■■■■ C# solution in VS
- Open SaltyClient/VoiceManager.cs
- Goto Line ~564 and add
if(instanceState.IsReady){
BaseScript.TriggerEvent("SaltyNUI:TsActive");
}else{
BaseScript.TriggerEvent("SaltyNUI:TsNotActive");
}
to the OnMessage Event (under case Command.InstanceState)
It should look somethings like THIS
-
Goto Line 500 and add
BaseScript.TriggerEvent("SaltyNUI:TsNotActive");
to the OnDisconnected Event (It should look like THIS) -
!!IMPORTANT!! COMPILE ■■■■■■■■■ AGAIN AND RE-UPLAOD IT!
These events gets triggered when Players close their Teamspeak Client and connect to a server / switch Channels
For ■■■■■■■■■ 1.x.x
- Open the ■■■■■■■■■ C# solution in VS
- Open SaltyClient/VoiceManager.cs
- Goto Line ~560 and add
if(pluginState.IsReady){
BaseScript.TriggerEvent("SaltyNUI:TsActive");
}else{
BaseScript.TriggerEvent("SaltyNUI:TsNotActive");
}
to the OnMessage Event (under case Command.StateUpdate)
It should look somethings like THIS
-
Goto Line 500 and add
BaseScript.TriggerEvent("SaltyNUI:TsNotActive");
to the OnDisconnected Event (It should look like THIS) -
!!IMPORTANT!! COMPILE ■■■■■■■■■ AGAIN AND RE-UPLAOD IT!
These events gets triggered when Players close their Teamspeak Client and connect to a server / switch Channels
What if i want to Whitelist Swiss-Channels in SaltyNUI
!!IMPORTANT!! If you have added every channel beside the “Join here to get moved into ingame channel” People WILL be able to Play on your Server by just joining your Teamspeak Server and sitting in ANY channel they like. Even if its not the “Ingame” channel thus defeting this script’s purpose.
If you want to have People be able to go into Support & have them still able to play on the Server, just move the out of the “ingame” channel. Moving the player wont trigger saltynnui to be displayed.
Also setting up every channel besides the “waiting” channel as a Swiss-Channel is NOT recommended!
- Instead of adding the above code to Line ~640 add this one:
if (this.PlguinState == GameInstanceState.Ingame || this.PlguinState == GameInstanceState.InSwissChannel){
BaseScript.TriggerEvent("SaltyNUI:TsActive");
}else{
BaseScript.TriggerEvent("SaltyNUI:TsNotActive");
}
Support
You can join our Discord - Offizieller EgoPvP.com Community Discord
A lot of u guys seem to have problems READING the Readme. Make shure u read it carefully and didnt miss anything and added the Event-Triggers like you should. I dont Provide a screenshot for you to not use it. Its supposed to be a helping thing.
Be aware that the Official ■■■■■■■■■ Devs wont give you support of any kind for 3rd party ressources and only reffer to asking me.
Make sure, u provide ur ■■■■■■■■■ version and a Screenshot of the Code that you have added so i can do some proper bugfixxing!
Other Scripts
We now offer Custom Script creations at our Store: CLICK ME
-
SaltyNUI - Discourage Users without Temspeak running when using ■■■■■■■■■!
-
erp_saltycircle - A basic Circle, visualizing your current voice range when using ■■■■■■■■■
-
erp_weaponrange - Have people do some shooting excersise before gaining the Weapons License.
-
erp_towscript - Highly Customisable and top working Vehicle Towing Script for FiveM
-
erp_antifalldown - Stop your Player from falling into the dark void.
-
erp_antiwhipping - Stop Players from hitting others when standing close.
-
erp_racing - Battle your Friends in epic 1 vs 1 races across LosSantos!
-
sitdown - Sitting made easy!