isPlayerMuted | Multi Theft Auto: Wiki Skip to content

isPlayerMuted

Client-side
Server-side
Shared

Pair: setPlayerMuted

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


Use this function to check if a player has been muted.

OOP Syntax Help! I don't understand this!

  • Method:player:isMuted(...)
  • Variable: .muted

Syntax

bool isPlayerMuted ( player thePlayer )
Required Arguments
  • thePlayer: The player you are checking.

Returns

  • bool: value

Returns true if the player is muted and false otherwise.

Code Examples

shared
someguy = getPlayerFromName ( "someGuy" )
if isPlayerMuted ( someguy ) then
outputChatBox ( "It seems Someguy can't speak." )
end

See Also