Skip to main content

ReceivingVoiceMessage

Gets called when the player is receiving a voice message.

Start a script section

!-- OnEvent ReceivingVoiceMessage
-- require @evPlayer @evSender *evMessage $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerReceivingVoiceMessageEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is going to receive the voice message.
@evSenderplayer valueGets the player that is sending the voice message.
*evMessagereference to VoiceMessage objectGets the VoiceMessage being received.
$evIsAllowedbool valueGets or sets a value indicating whether the voice message is allowed to be received.
Remarks: If this is but the VoiceChatChannel is None this will be ignored.