Jump to content

Filepath for client side


relief

Recommended Posts

Posted

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 ?

Posted

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)

Posted

@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)

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...