Is it possible to add to the inventory an item which was find somewhere without wasting Virtual Currency (because player just found this item, there is no reason to pay for it)
Is it possible to add to the inventory an item which was find somewhere without wasting Virtual Currency (because player just found this item, there is no reason to pay for it)
If you are using Economy V1, you can implement an Azure Function to call server API Player Item Management - Grant Items To User - REST API (PlayFab Server) | Microsoft Docs to add item to the player’s inventory. If you are using Economy V2, you can call API Inventory - Add Inventory Items - REST API (PlayFab Economy) | Microsoft Docs.
Hello, Thank you it might be the solution. But do you have maybe an example of the Grant Items To User function in cloud script? Because i cant find any examples as well as to which class this method belongs to call it in cloud script. Thank you in advance.
17 People are following this question.