szimre
2
Answer:
The big thing at hand here is that Lua the variables “containing” a table in fact only contain a reference to a table. Copying variables containing tables does only copy the reference to that table, and thus represent the same table […]
by jpjacobs on StackOverflow
Apparently standard lua does not contain solutions to copy a table, I shall work around the issue with other checks. Read more: lua-users wiki: Copy Table
(If FiveM containts a solution please reply for future reference)