SetPlayerVoiceBroadcastTo

From Multi Theft Auto: Wiki
Revision as of 08:38, 22 August 2011 by X86dev (talk | contribs)
Jump to navigation Jump to search

This function allows you to change who can hear the voice of a player, and what voices the player can hear.

Syntax

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

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