# SetItemInHand
TIP
setItemInHand(<player>, <item>)
- Sets the item in a player's hand with <item>, the item must be an array with the following elements:
"custom_name" => <custom_name> (Optional)
"id" => <id>
"meta" => <meta> (Optional)
"amount" => <amount> (Optional)
"nbt" => <nbt> (Optional)
# Parameters
<player>
The player to set the item in their hand as string<item>
The item to set in the player's hand as array
# Example
1: $item$['id'] = 5
2: $item$['meta'] = 1
3: $item$['amount'] = 32
4: setItemInHand($player$, $item$)