question

v-badh avatar image
v-badh asked

Which is the admin API to Grant inventory items to a player?

I tried to grant inventory items to a player using GrantInventoryItems. It returned success. But when I retrieve player inventory using GetInventoryItems API, it does not contain the provisioned items.

which is the correct admin/economy API to do the same.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

The GrantInventoryItems and GetInventoryItems API is currently not included in public docs or the latest SDK, which means that they probably are still in beta, please keep an eye on our docs and blog for new feature releases. For now, I would suggest you use Admin/GrantItemsToUsers or Server/GrantItemsToUsers to grant items to users and use Server/GetUserInventory or Admin/GetUserInventory to retrieve player inventory.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.