Feche1320 Posted December 29, 2010 Share Posted December 29, 2010 How can I create it? I have a function on a resource and use it on another resource, that's all ^^ Thanks. Link to comment
nowofresh Posted December 29, 2010 Share Posted December 29, 2010 U must use, "export function" in u'r meta file. This is it. Link to comment
Feche1320 Posted December 29, 2010 Author Share Posted December 29, 2010 A example please? Thanks Link to comment
Aibo Posted December 29, 2010 Share Posted December 29, 2010 your function that you want to export: function myCoolFunction(param) if param then return param end end meta of yourResource: <export function="myCoolFunction" type="server" /> (type can be server or client) calling a function of yourResource from some other resource: exports.yourResource:myCoolFunction("blablabla") https://wiki.multitheftauto.com/wiki/Call Link to comment
Feche1320 Posted December 30, 2010 Author Share Posted December 30, 2010 Ah, I get it now, thanks a lot! Link to comment
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