Feche1320 Posted December 29, 2010 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.
nowofresh Posted December 29, 2010 Posted December 29, 2010 U must use, "export function" in u'r meta file. This is it.
Aibo Posted December 29, 2010 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
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