Jump to content

Calling table functions from other resources


diMoon

Recommended Posts

Hi!

I have a problem calling a table function from other resource.

Here is an example:

local x = exports.testOORes:TestClass.new() 

Is that even possible in MTA? And if not then why? I wanted to create my GameMode completely object oriented in multiple resources. I tried using every variation of "call" function but no progress so far.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...