This works
Code: Select all
game.player.print(game.getlocaliseditemname(event.itemstack.name)) --> return "Iron Plate" / type "table"
game.player.print(game.getlocaliseditemname(event.itemstack.name)[1]) --> return "item-name.iron-plate" / type "string"
game.player.print("x " .. game.getlocaliseditemname(event.itemstack.name)[1]) --> return "x item-name.iron-plate"
This not works
Code: Select all
game.player.print("x " .. game.getlocaliseditemname(event.itemstack.name)) --> attemp to concatenate a table value
Thanks for help