Skip to main content

SendingVoiceMessage

Gets called when the player is sending a voice message.

Start a script section

!-- OnEvent SendingVoiceMessage
-- require @evPlayer *evMessage $evIsAllowed

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

Injected variables

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