SetPlayerVoiceBroadcastTo

From Multi Theft Auto: Wiki
Revision as of 23:30, 21 August 2011 by Ccw (talk | contribs) (Created page with "{{Server function}} __NOTOC__ This function allows you to change the who a can hear the voice of a player ==Syntax== <syntaxhighlight lang="lua"> bool setPlayerVoiceBroadcastTo ( element th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Syntax

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

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

  • 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

Returns

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

Example

Click to collapse [-]
Server

See Also