Anonymous
public lua v1 · immutablefor type = 0, 17 do --initialize a counter local clothes = 0 --we increase the counter until it's an invalid clothing ID while getClothesByTypeIndex ( type, clothes ) ~= false do clothes = clothes + 1 end --remember the last one didn't exist: we've got to remove it --from the count when storing it count[type] = clothes - 1end