xPlayer.addInventoryItem¶
1 | |
此功能添加库存物品。
参数¶
| 参数 | 数据类型 | 数据类型 | 默认值 | 说明 |
|---|---|---|---|---|
| item | string | No | - | 物品名称 |
| count | number | No | - | 要添加的数目 |
Warning
This function will not check if the player weight limit exceeds. Recommended to use in comibation with xPlayer.canCarryItem(item, count)
xPlayer.addInventoryItem 示例¶
1 2 3 4 5 6 | |