v10networkscom / saltychat-fivem

FiveM implementation of Salty Chat (TeamSpeak 3 based Voice Plugin)
https://gaming.v10networks.com
GNU General Public License v3.0
70 stars 64 forks source link

Global mute for isAlive #78

Closed auvics closed 3 years ago

auvics commented 3 years ago

Guess its good to add isAlive on Sound Mute and Mic Mute. When the player dies, will mute both. I've checked into salty sourcecode, it was suppose to do that, but seems still not working.

i'm using like this:

RegisterServerEvent("vRP:playerDead") AddEventHandler("vRP:playerDead", function(isDead) local source = source exports["saltychat"]:SetPlayerAlive(source, isDead) end)

when player life is less than x it set false and disconnect player from the radio but I'm still being able to talk on normal voice

Edit: It's working but talk hotkey still working after dead, hope you guys can do something about it.