Skip to main content

UsingRadio

Gets called when the player is using the radio.

Start a script section

!-- OnEvent UsingRadio
-- require @evPlayer *evRadioItem $evDrain $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is using the radio.
*evRadioItemreference to RadioItem objectGets the radio that is being used.
$evDrainnumber valueGets the battery drain amount per second.
$evIsAllowedbool valueWhether the event is allowed to run.