Skip to main content

client Player:moveItem

info

The moving player must be marked as a viewer on server and be within range of both inventories!

boolean Player:moveItem(oldStorage, newStorage, oldSlot, newSlot)

Locally moves an item from an inventory to another inventory and sends a validation request to the server.


Parameters

TypeNameDescriptionOptional
StorageoldStorageNo description
StoragenewStorageNo description
numberoldSlotNo description
numbernewSlotDefaults to -1

Returns

TypeDescription
booleanLocal move was successful