The Player::getOwnedOutfits function returns a Lua table, which by the looks of it does not have an implicit string conversion. You can try iterating the table instead (not tested):
local Outfitss = Action()
function Outfitss.onUse(player, item, fromPosition, target, toPosition, isHotkey)...