Drakath Posted March 24, 2016 Posted March 24, 2016 Is there a way to access the data of another class? Thing = inherit( Singleton ) function Thing:constructor( ) self.myTable = {} end addEvent("someEvent", true) function myFunc(something) triggerClientEvent(client, "haha", root, --How do I access myTable[something] ? ) end addEventHandler("someEvent", root, myFunc) I know I could do Thing:MyFunc() and then access self.myTable but my question is whether there is an alternative way for this.
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