joaosilva099 Posted December 21, 2014 Posted December 21, 2014 Please guys, tell me what is wrong... I can't output that! addCommandHandler("getClothes", function (source) clothesmodel = {} clothestxt = {} skin = getElementModel(source) if(skin == 0) then for i=0, 17 do ct, cm = getPedClothes(source, i) table.insert(clothesmodel, cm) table.insert(clothestxt, ct) end end stringr = tostring(table.concat(clothesmodel, ", ")).." | "..tostring(table.concat(clothestxt, ", ")) outputChatBox(stringr) end) DS3: Invalid value (boolean) at index 5 in table for 'concat'
joaosilva099 Posted December 21, 2014 Author Posted December 21, 2014 Forget it. Already fixed that... For those who may have the same problem just add a check do the texture var because it will return false if the player has no clothes in that clothes slot.
Recommended Posts