Mute Player When dead #245
-
So, to mute a player who died so that they don't speak in voip would just use "exports["pma-voice"]:toggleMutePlayer(GetPlayerServerId(PlayerId()))" When the died event whast triggered? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
This won't ever make its way into pma-voice, but you can use exports to achieve this exports['pma-voice']:overrideProximityCheck(function(player)
-- This disables the player from "targeting" anyone when talking
return false
end) Do this when they're alive again exports['pma-voice']:resetProximityCheck() |
Beta Was this translation helpful? Give feedback.
-
Hi, im using ars_ambulancejob and if can someone help me how can i set it here too so it can work i would appreciate it :) Here is the code: local DoScreenFadeOut = DoScreenFadeOut function stopPlayerDeath()
end function healPlayer()
end RegisterNetEvent("ars_ambulancejob:healPlayer", function(data) local function respawnPlayer()
end local function initPlayerDeath(logged_dead)
end function onPlayerLoaded()
end AddEventHandler('gameEventTriggered', function(event, data)
end) exports("isDead", function() -- © 𝐴𝑟𝑖𝑢𝑠 𝐷𝑒𝑣𝑒𝑙𝑜𝑝𝑚𝑒𝑛𝑡 |
Beta Was this translation helpful? Give feedback.
This won't ever make its way into pma-voice, but you can use exports to achieve this
Do this when they're alive again