relief Posted January 25, 2015 Share Posted January 25, 2015 I'm trying to write the client files to its hypothetical directory (fileCreate(':example/file.jpg')) without the target resource running. Although, it clearly states that it is not possible: So, for example xmlLoadFile ( ":helpmanager/help.xml" ) Note: Server side filepaths which refer to resources will work correctly even if the other resource is not running. However client side filepaths require the target resource to be running. Is this a workaround for this ? Link to comment
Gallardo9944 Posted January 25, 2015 Share Posted January 25, 2015 Try to write the file into the subdirectory of your current resource like xmlLoadFile("files/helpmanager/help.xml") That's just security MTA provides (e.g. if you save login and password in an XML file, a resource on another server can't read it unless it has the same name. Even that can be protected by using @ before the name. Read https://wiki.multitheftauto.com/wiki/Filepath for further info) Link to comment
relief Posted January 25, 2015 Author Share Posted January 25, 2015 @Gallardo9944 Thanks. I just found out about startResource function which has loadFiles parameter, I can put that to off and write the files manually for the client to solve this problem. << (in case any one has the same issue) 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