returnfunction()local user =getUser('clonzeh');if user ==nilthenlog('user does not exist!');return;end--checks available pieces the user on specified gear set: hatslocal availGearSetPieces = user.getWearableGearSetPieces('hats');local str ='';for key, value inpairs(availGearSetPieces) do str = str .. value ..', ';endlog('available gear set pieces for hats are: ');log(str);end