I have the following code, and I am wanting to know how I would set a bool if the user has an item, I have an item with the id AKM, I'm wanting to check if he owns it or not.
PlayerOwnsAKM is a bool I have already made previously in the script, I'm trying to set it to true or false based on if the user has the item with itemID AKM in his inventory.
GetUserInventoryRequest requestInventory = new GetUserInventoryRequest(); PlayFabClientAPI.GetUserInventory(requestInventory, result => { PlayerOwnsAKM = result.Inventory.Contains("AKM"); }, error => { Debug.Log(error.ErrorMessage); });