SetPlayerVoiceBroadcastTo: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool setPlayerVoiceBroadcastTo ( element thePlayer, mixed broadcastTo [, mixed ignoredBy ] )
bool setPlayerVoiceBroadcastTo ( element thePlayer, mixed broadcastTo [, mixed ignoreFrom ] )
</syntaxhighlight>  
</syntaxhighlight>  


Line 14: Line 14:


===Optional Arguments===  
===Optional Arguments===  
*'''ignoredBy :''' Element or table of elements who should not hear the voice from this player. Note: Elements in ignoredBy take precedence over those in broadcastTo
*'''ignoreFrom:''' Element or table of elements who the player should not hear voices from.


===Returns===
===Returns===

Revision as of 00:46, 22 August 2011

This function allows you to change who can hear the voice of a player

Syntax

bool setPlayerVoiceBroadcastTo ( element thePlayer, mixed broadcastTo [, mixed ignoreFrom ] )

Required Arguments

  • thePlayer: The player you wish to change
  • broadcastTo : Element or table of elements who should hear the voice from this player

Optional Arguments

  • ignoreFrom: Element or table of elements who the player should not hear voices from.

Returns

Returns true if the value was set successfully, false otherwise.

Example

Click to collapse [-]
Server

See Also