OnClientPlayerVoicePause: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client event}} __NOTOC__ This event is triggered when a player's voice sound is paused using setSoundPaused. ==Parameters== <syntaxhighlight lang="lua"> string reason </syntaxhighlight> *'''...")
(No difference)

Revision as of 14:44, 8 July 2014

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

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

Example

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

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

See Also

Client sound events


Client event functions