madis Posted November 18, 2009 Share Posted November 18, 2009 Assume I have included resource B in my resource A by meta.xml In resource B meta.xml there is for example (the file is in resource B as well) Is there a way to use that file in resource A? The reason I'm separating data, is because it's atm ~200 MB which makes restarting the resource in server slow (~15 seconds) while developing and refreshing and restarting a resource if very often. (Actually the original idea was, that I hoped that B (which itself is not updated) was not always restarted when I restart A - unfortunately it does). EDIT: In case there isn't a simple way, this should do it: https://wiki.multitheftauto.com/wiki/Call EDIT2: Btw using the short version exports.resource:exportedFunction([argument1[, argument...]]) didn't work for me, however call worked. Great! Link to comment
subenji99 Posted November 18, 2009 Share Posted November 18, 2009 https://wiki.multitheftauto.com/wiki/Filepath Link to comment
madis Posted November 18, 2009 Author Share Posted November 18, 2009 Great! Thank you, subenji99. Link to comment
50p Posted November 18, 2009 Share Posted November 18, 2009 You can use MTA: Script Editor where you can click and drag image or sound file into your code which will generate the string for you. 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