Skip to content

OnInventoryItemsFind

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnInventoryItemsFind( PlayerInventory instance, int id )
{
    Puts( "OnInventoryItemsFind works!" );
}

Location

  • PlayerInventory::FindItemsByItemID(int id)
csharp
public List<Item> FindItemsByItemID(int id)
{
	object returnvar = Interface.CallHook("OnInventoryItemsFind", this, id);
	if (returnvar is List<Item>)
	{
		return (List<Item>)returnvar;
	}
	List<Item> list = new List<Item>();
//---

Released under the MIT License.