It's simple enough I want to inverse a table's keys and values. I want the keys to become the values, and the values to become the keys.
Would something along these lines work?
Code:
function SetTicketNumberToNil()
for k,v pairs do
table.insert(name, name[i], i)
end
end
This only work, if it does, because the keys are simple: 1,2,3,4,5... But how do I do that if I have keys like zdfs and gkfslg; or djakf?