Create a simple inv
Create a simple inventar
-- Create inventory
local title = "This is the inventory title"
local slots = 9
local inv = plugin.getServer():createInventory(nil, slots, title)
-- Open inventory for player
player:openInventory(inv)Make sure thah your slots number can be divided by 9 and is lower then 55 (max. Slots 54)

Set an item for the inventory
This code allows you to open an inventory with an grass block item in the first slot of the inventory
Last updated