inventory
player.inventory functions
player.inventory.slot
player.inventory.slot(slot_id): string
Argument
Type
Description
slot_id
Number
ID of the slot to check
Returns the name of the item in the slot
player.inventory.item_information
player.inventory.item_information(slot_id): string, string, number, number, table
Argument
Type
Description
slot_id
Number
ID of the slot to check
Returns item name, display name, item damage, efficiency and a table containing all enchants
player.inventory.swap
player.inventory.swap(slot_id, hotbar_slot)
Argument
Type
Description
slot_id
Number
ID of the slot to swap
hotbar_slot
Number
Hotbar slot number where the item will be set at
Moves an item to your hotbar
player.inventory.click
player.inventory.click(slot_id, mouse_click, mode)
Argument
Type
Description
slot_id
Number
ID of the slot to swap
mouse_click
Number
Mouse click
mode
Number
1: to hold click 0: to normal click
4: to drop item
Clicks an item in your inventory or chest
player.inventory.drop
player.inventory.drop(slot_id)
Argument
Type
Description
slot_id
Number
ID of the slot to drop
Drops an item in your inventory
player.inventory.get_item_stack
player.inventory.get_item_stack(slot_id): number
Argument
Type
Description
slot_id
Number
ID of the slot
Returns the amount of items in the desired slot
Last updated
Was this helpful?