Skip to content

OnInventoryItemsFind

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnInventoryItemsFind( PlayerInventory instance, int id, List<Item> list )
{
    Puts( "OnInventoryItemsFind works!" );
    return null;
}

Location

  • PlayerInventory::FindItemsByItemID(List<Item> list, int id)
csharp
public void FindItemsByItemID(List<Item> list, int id)
{
	if (Interface.CallHook("OnInventoryItemsFind", this, id, list) == null)
	{
		if (containerMain != null)
		{
			containerMain.FindItemsByItemID(list, id);
		}
//---

Released under the MIT License.