onClientPlayerVoicePause | Multi Theft Auto: Wiki Skip to content

onClientPlayerVoicePause

Client-side
Server-side
Shared

This event is triggered when a player's voice sound is paused using setSoundPaused.

Parameters

string reason
  • reason: the reason for the pause, this can be only "paused".

Source

element: The source of this event is the player whose voice got paused.

Code Examples

client

This example outputs nick of whoever's voice is paused.

addEventHandler("onClientPlayerVoicePause", root,
function ()
outputChatBox(getPlayerName(source) .. "'s voice got paused.")
end
)

See Also