joaosilva099 Posted December 21, 2014 Share 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' Link to comment
joaosilva099 Posted December 21, 2014 Author Share 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. Link to comment
Recommended Posts