ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isPlayerMuted

Function

isPlayerMuted

ServerPlayersIdentical to MTA:SA

Checks whether a player is muted in chat.

Syntax

bool isPlayerMuted(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

true if muted.

Example

addEventHandler("onPlayerChat", root, function()
    if isPlayerMuted(source) then
        outputChatBox("Jesteś wyciszony.", source, 255, 0, 0)
    end
end)

See also