Jump to content

mta function in same resource


Recommended Posts

Posted

hi, have 2 file : base.lua, eat.lua in the same resource, i want to call a function add_need that is defined in base.lua from eat.lua, but got an error saying that add_need is global variable that has a nil value, mean that the function isn't recognized in eat.lua how can i export it?

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