event onTakeItem (client-side)
Available since version: 0.3.0
This event is triggered when the hero takes an item from the ground.
Parameters
void onTakeItem(string item, boolean synchronized, number amount, number|nil itemGroundId)
stringitem: Item instance.booleansynchronized: True when pickup is synchronized with the server.numberamount: Item amount.number|nilitemGroundId: Ground item id, or nil for non-server items.