Item:setData

From Nutscript Developer Wiki
Jump to navigation Jump to search


    Item:setData(key, value, receivers, noSave, noCheckEntity)

This function sets the data of the item. The Variable will be saved in the item's record, which means you can access to the variable in the future. (!!) Saving too many/long data to the item will result the corruption of the item data!

Arguments[edit]

  • String key
  • Variables value
  • Player Table receivers
  • Boolean noSave
  • Boolean noCheckEntity

Return Values[edit]

none

Examples[edit]

none