Skip to main content

DroppingAmmo

Gets called when the player is dropping ammo.

Start a script section

!-- OnEvent DroppingAmmo
-- require @evPlayer $evType $evAmount $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets or sets the player who is dropping the ammo.
$evTypeItemType enum valueGets or sets the type of ammo being dropped.
$evAmountnumber valueGets or sets the amount of ammo being dropped.
$evIsAllowedbool valueWhether the event is allowed to run.