Skip to main content

ZEPETO.Multiplay.Inventory

Enumerations

Interfaces

Functions

loadInventory

loadInventory(userId): Promise<Inventory>

Retrieves the inventory object associated with a specific player. Throws InventoryError.

Parameters

NameTypeDescription
userIdstringThe user ID of the player.

Returns

Promise<Inventory>

Promise resolved upon completion, with the retrieved Inventory object.

loadInventory(player): Promise<Inventory>

Retrieves the inventory object associated with a specific player. Throws InventoryError.

Parameters

NameType
playerSandboxPlayer

Returns

Promise<Inventory>

Promise resolved upon completion, with the retrieved Inventory object.