Jump to content

Calling table functions from other resources


diMoon

Recommended Posts

Posted

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.

Posted

Do you mean 'exporting OOP classes with functions ' if yes as far as i know It's not possible.

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

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...