OnClientPlayerVoicePause

From Multi Theft Auto: Wiki
Revision as of 14:44, 8 July 2014 by Miki785 (talk | contribs) (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> *'''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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