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.
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.