SetPlayerVoiceIgnoreFrom: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server function}} __NOTOC__ This function allows you to mute voices for a player. ==Syntax== <syntaxhighlight lang="lua"> bool setPlayerVoiceIgnoreFrom ( element thePlayer, mixed ignoreFr...")
 
No edit summary
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Server function}}
{{Server function}}__NOTOC__
__NOTOC__
{{Needs Example}}
 
This function allows you to mute voices for a player.
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 [[Resource:Voice|Voice Resource]]}}


==Syntax==  
==Syntax==  
Line 8: Line 10:
bool setPlayerVoiceIgnoreFrom ( element thePlayer, mixed ignoreFrom )
bool setPlayerVoiceIgnoreFrom ( element thePlayer, mixed ignoreFrom )
</syntaxhighlight>  
</syntaxhighlight>  
 
{{OOP||[[player]]:setVoiceIgnoreFrom|voiceIgnoreFrom|}}
===Required Arguments===  
===Required Arguments===  
*'''thePlayer:''' The [[player]] you wish to change
*'''thePlayer:''' The [[player]] you wish to change

Revision as of 05:59, 11 August 2019

Accessories-text-editor.png 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.

[[{{{image}}}|link=|]] 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 [-]
Server

See Also