SlashCo Wiki

SlashCo.RemoveItem

  SlashCo.RemoveItem( Player ply, boolean isSec )

Description

Clears the given item slot without spawning a dropped entity, calling the item's ITEM.OnSwitchFrom callback after a short delay.

Arguments

1Player ply

The player whose item slot should be cleared.

2boolean isSec

If true, clears the secondary slot instead of the primary one.