Skip to main content

ChangingBadgeVisibility

Gets called when the player is changing their global or local badge visibility.

Start a script section

!-- OnEvent ChangingBadgeVisibility
-- require @evPlayer $evIsGlobalBadge $evNewVisibility $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueThe player that is changing their badge visibility.
$evIsGlobalBadgebool valueif the badge is a global badge, otherwise it is a local badge.
$evNewVisibilitybool valueWhether the badge will be visible.
$evIsAllowedbool valueWhether the event is allowed to run.