ON TFS 1.0...
function onUse(cid, item, fromPosition, itemEx, toPosition)
local rewards = {2544, 2495, 2544}
local weight = 0
for _, v in pairs(rewards) do
weight = weight + getItemWeight(v, 1)
end
return print(weight)
end
On TFS 3.7 use:
getItemWeightById