Skip to main content

ItemSpawning

Gets called when the server is spawning item on map.

Start a script section

!-- OnEvent ItemSpawning
-- require $evItemType $evIsAllowed

# Add your instructions here
  • Group: ServerEvents
  • Cancellable: Yes
  • Event data: ItemSpawningEventArgs

Injected variables

VariableTypeDescription
$evItemTypeItemType enum valueGets or sets type of item which will spawn.
$evIsAllowedbool valueWhether the event is allowed to run.