Skip to main content

UnloadingWeapon

Gets called when the player is unloading a weapon.

Start a script section

!-- OnEvent UnloadingWeapon
-- require @evPlayer *evFirearmItem $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is unloading a weapon.
*evFirearmItemreference to FirearmItem objectGets or sets the weapon that is being unloaded.
$evIsAllowedbool valueWhether the event is allowed to run.