08-01-2018, 08:36 PM
Hi,
So I've been trying to set a lore to the cItem via the constructor, but I get the error "argument #2 is 'number'; '[no object' expected]" for the second line
The API documentation is a bit lacking in this area, somewhere it says that lore is a string, elsewhere it says that it's a Table, and now I have no idea how to set it correctly.
Can someone give me an example or explain to me why it isn't working?
Thanks in advance
So I've been trying to set a lore to the cItem via the constructor, but I get the error "argument #2 is 'number'; '[no object' expected]" for the second line
Code:
local weapons = cItem(E_ITEM_DIAMOND_SWORD, 1, 0 , "thorns=0", "Weapons", {"Lore1", "Lore2})
local blocks = cItem(E_BLOCK_WOOL , 1, E_META_WOOL_ORANGE, "thorns=0", "Blocks" , {"Lore1", "Lore2})
local armour = cItem(E_ITEM_DIAMOND_HELMET, 1, 0 , "thorns=0", "Armour" , {"Lore1", "Lore2})
Can someone give me an example or explain to me why it isn't working?
Thanks in advance