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. www.host-ar.com.ar
nowofresh Posted December 29, 2010 Posted December 29, 2010 U must use, "export function" in u'r meta file. This is it.
Feche1320 Posted December 29, 2010 Author Posted December 29, 2010 A example please? Thanks www.host-ar.com.ar
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 ?
Feche1320 Posted December 30, 2010 Author Posted December 30, 2010 Ah, I get it now, thanks a lot! www.host-ar.com.ar
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