-
Notifications
You must be signed in to change notification settings - Fork 18
profileInventory
Ben edited this page Aug 16, 2022
·
1 revision
The TRP3: Extended inventory system
-
id
: Unique ID of the inventory, presumably used when a character has multiple inventories -
totalWeight
: Total weight of all items in inventory(?) -
content
: A list of items (explained below) contained inside the inventory -
totalValue
: Value of all items in inventory
Each item has a number of attributes, depending on the type of item
-
slot
: The slot number the item is assigned to on your character -
id
: Unique ID of the item -
totalWeight
: Weight of the item -
content
: Only applicable if the item is a bag, same as above. -
totalValue
: Value of the item, 0 means priceless -
pos
: Where on the character frame the item is located, if it is a wearable item
path
: "inventory"
local inventory = TRP3_API.profile.getData("inventory")