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.
the problem is if i join the server with saltychat but my teamspeak3.exe is not open i can play without the NUI if i have my ts3 open im background and iam not connectet than the nui block my screen i just wannt that you cann add the NUI is block directly if the player does not have ts3 open
If you have coded it the right way & compiled it properly
Anytime Saltychat is NOT ready to play ingame its displaying the nui…
Please show the lines you edited in the SaltyChat script & check for any error logs in teamspeak client & fivem client. Also provide which version ur using
What about swiss Channels? You got an idea how to implement them? So lets say, you have a developement Channel or maybe support channel or some stuff, and you want to let players still play when inside of some kind of those channels. Would it be possible to do so?
Due to Swiss Channels not making Saltychat be in the “Ready to Play” mode its not possible.
however one of the last few updates added some changes to the script state which could change some stuff.
I personally didnt got the time and will to look into it so far. Maybe in the next days i’ll do it tho.
A workaround is to move players out of the Ingame channels. This procedure is not triggering saltychat’s switched channel stuff thus still being able to play ingame when moved.
the guide IS Up-To-Date if you check the one for 2.x.x
Even tho your VSS is telling you its “Outdated”. What deos “Outdated” even mean. Defenitly not, that it is not working cause it does.
VSS might be telling you that the method used is outdated, yeah. but it will still work. And as i said
“I personally didnt got the time and will to look into it so far. Maybe in the next days i’ll do it tho.”(for the new version)
also these saltychat events are in the normal version of SaltyNUI so nothing new
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 SALTYCHAT 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:
With this Updated client.lua is the Installation Simply Drag and Drop and it works.
This Works only for the newest Saltychat Versions!!!
AddEventHandler('SaltyChat_PluginStateChanged', function(PluginState)
if PluginState == 2 or PluginState == 3 then
SendNUIMessage({action = "toggleWindow", value = "false"})
else
SendNUIMessage({action = "toggleWindow", value = "true"})
end
end)
when this version of sc gets more popular, ill use integrate it. currently there are not enough servers to put it in there or otherwise players will have errors all the time.