1. Hello. How can I get BasePlayer here?
    Code:
    CanEquipItem(PlayerInventory inventory, Item item)
     
  2. I'm not 100% sure as I can't test this right now, but I think this would work:
    Code:
    var player = inventory.GetComponent<BasePlayer>();
    
     
  3. Code:
    var player = inventory.GetBaseEntity() as BasePlayer;
    if the above doesn't work