Frank96 Posted June 27, 2014 Posted June 27, 2014 im making a new accounts system in OOP using setmetatable my problem is that i want it to be available thro all the resources ik that i can send the lua file content using fileRead and loadstring but that wont work for me because the accounts system uses sql, then stores the data in a table i want that table to be the same in all the resources, which is why the "loadstring" solution wont work bec each resource will have its own version of the table any ideas?
50p Posted June 27, 2014 Posted June 27, 2014 Yeah, have 1 table in 1 resource and an exported function. If you need to access that table, just call the exported function.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now