I want to add to player item for example Backpack that weight is 100 oz.
Code i made:
and i getting this error:
Using TFS 1.2
Code i made:
Lua:
local item = doPlayerAddItem(player, 2000, 1)
item:setAttribute(ITEM_ATTRIBUTE_WEIGHT, 10000)
and i getting this error:
Less:
attempt to index local 'item' (a number value)
Using TFS 1.2