SetPlayerVoiceIgnoreFrom
From Multi Theft Auto: Wiki
Script Example Missing Function SetPlayerVoiceIgnoreFrom needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
This function allows you to mute voices for a player.
Important Note: This function should only be used as a low-level function for advanced users. For typical Voice scripting, please see the Voice Resource |
Syntax
bool setPlayerVoiceIgnoreFrom ( element thePlayer, mixed ignoreFrom )
OOP Syntax Help! I don't understand this!
- Method: player:setVoiceIgnoreFrom(...)
- Variable: .voiceIgnoreFrom
Required Arguments
- thePlayer: The player you wish to change
- ignoreFrom: Element or table of elements which the player should not hear voices from. Use nil if no one should be ignored.
Returns
Returns true if the value was set successfully, false otherwise.
Example
Click to collapse [-]
ServerSee Also
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerFromName
- getPlayerIdleTime
- getPlayerIP
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
FROM VERSION 1.5.7 r19626 ONWARDS
- getPlayerSerial
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- isVoiceEnabled
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerMuted
- setPlayerName
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
FROM VERSION 1.5.7 r19626 ONWARDS
- setPlayerTeam
- setPlayerVoiceBroadcastTo
- setPlayerVoiceIgnoreFrom
- setPlayerWantedLevel
- spawnPlayer
- takePlayerMoney
- takePlayerScreenShot