# GetInventory
TIP
getInventory(<player>)
- Returns the content of a player's inventory as an array, the indexes of the array are the slots for the item, the item will be an array with the following elements:
["name"]
Item's name["custom_name"]
Item's custom name["id"]
Item's ID["meta"]
Item's meta["amount"]
Item's amount["nbt"]
Item's NBT
# Parameters
<player>
The player to get their inventory as string
# Example
1: $inventory$ = getInventory($player$)
2: sendMessage($player$, "Your inventory content is:\n" + $inventory$)