local Hair = {
['Male'] = {
['Trecky'] = {['ID'] = 32278814, ['DecalID'] = 0000000};
['Bald'] = {['ID'] = nil, ['DecalID'] = 0000000};
['Politician Hair'] = {['ID'] = 12270145, ['DecalID'] = 000000};
['Gray Hair'] = {['ID'] = 12864800, ['DecalID'] = 000000};
['Messy Hair'] = {['ID'] = 26658141, ['DecalID'] = 000000}
};
['Female'] = {
['Golden Hair'] = {['ID'] = 13476917, ['DecalID'] = 000000};
['Black and Red Hair'] = {['ID'] = 14815761, ['DecalID'] = 0000000};
['Cinnamon Hair'] = {['ID'] = 13745548, ['DecalID'] = 0000000};
['Sassy Headband'] = {['ID'] = 25517576, ['DecalID'] = 0000000}
}
}
So this is my table, I need to grab the number of values in each gender.
However:
print(#Hair['Male'])
Always returns 0... (and the same with female)
Does the #table method not work in this situation?
And if so, is there a better way than using a loop and counting each value?

1 comment
Meh, thanks anyway.