I'm storing numbers in a table like this:
local table = {231, 5353, 2867}
I'd like to know if there's a possible way to index those values like this:
table[5353]
I thought about changing the table format to {[231] = true} however that method won't work with JSONEncode. If anyone knows a possible solution, please let me know.
Also, i'm trying to avoid having to loop through the table just to make things easier.
In the Lua language, [] is not used to index table values. The second script bar would represent the 5,353rd value in the "table" table.