onPlayerMute | Multi Theft Auto: Wiki Skip to content

onPlayerMute

Client-side
Server-side
Shared

This event is triggered when a player has been muted by setPlayerMuted.

Parameters

This event does not pass any parameters to the handler function.

Source

element: The source of this event is the player who got muted.

Canceling

If this event is canceled, the player will not be muted.

Code Examples

server
function muted()
outputChatBox(getPlayerName(source) .. " has been muted.", root, 255, 0, 0)
end
addEventHandler("onPlayerMute", root, muted)

See Also