I found a lua function "PrintTable(<player name>.pac_parts)" that prints out an EXTREMLY BASIC version of the person's outfit. This is no help to me though as while it could probably be converted, i think it actually printed out in HTML with many unused functions in it.
I could still use the way that uses ent.pac_parts