• global functions
    1 replies, posted
When I declare a function in one script then try to use it in another it gives me a error saying it's nil. How would I declare a global function, right now I'm doing [CODE]function name(params) code return value end[/CODE] Edit:It seems to be working fine now o.o
It's something like _G[func name] = function() _G is the global table, so you do something with that.
Sorry, you need to Log In to post a reply to this thread.