Difference between revisions of "SetPlayerVoiceIgnoreFrom"

From Multi Theft Auto: Wiki
(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...")
 
Line 1: Line 1:
 
{{Server function}}
 
{{Server function}}
 
__NOTOC__  
 
__NOTOC__  
 +
<div style="border: 1px dotted blue; background: #00CC66;padding:4px;margin-bottom:2px;">'''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]]</div>
 
This function allows you to mute voices for a player.
 
This function allows you to mute voices for a player.
  

Revision as of 19:18, 22 August 2011

Note: This function should only be used as a low-level function for advanced users. For typical Voice scripting, please see the Voice Resource

This function allows you to mute voices for a player.

Syntax

bool setPlayerVoiceIgnoreFrom ( element thePlayer, mixed ignoreFrom )

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

BETA: FROM VERSION 1.5.7 r19626 ONWARDS
BETA: FROM VERSION 1.5.7 r19626 ONWARDS