Skip to content


xPlayer.setInventoryItem(item, count)

This function sets an inventory item count


Argument Data Type Optional Default Value Explanation
item string No - Item name, valid items can be found in database table items
count number No - New item count


This function will not check if the player weight limit exceeds. Recommended to use in comibation with xPlayer.canCarryItem(item, count)