Skip to content

Instantly share code, notes, and snippets.

@Randolio
Last active December 30, 2025 05:39
Show Gist options
  • Select an option

  • Save Randolio/7239c8087084fdb24a52f936f37806ec to your computer and use it in GitHub Desktop.

Select an option

Save Randolio/7239c8087084fdb24a52f936f37806ec to your computer and use it in GitHub Desktop.
Mute on death (randol_medical)
AddEventHandler('randol_medical:onPlayerDeath', function()
if not exports['pma-voice']:isPlayerMuted(cache.serverId) then
exports['pma-voice']:toggleMutePlayer(cache.serverId)
end
end)
AddEventHandler('randol_medical:onPlayerLastStand', function()
if not exports['pma-voice']:isPlayerMuted(cache.serverId) then
exports['pma-voice']:toggleMutePlayer(cache.serverId)
end
end)
AddEventHandler('randol_medical:onRevive', function()
if exports['pma-voice']:isPlayerMuted(cache.serverId) then
exports['pma-voice']:toggleMutePlayer(cache.serverId)
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment