Jump to content

Access data files from included resource


madis

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...