Jump to content

How to set XML file only to read for client


Recommended Posts

Hi, i came with question about xml files? Can i set xml file only to read for client? I mean in script i'm creating xml file and i dont want to situation that client is editing xml file and script is warning me in ds3, some ideas? I made a function which renew xml file but it isnt efficient so :/

Link to post
  • Moderators
25 minutes ago, Mickoi said:

Can i set xml file only to read for client?

You can read xml from a string. So you got your xml tree scoped by your own script.

https://wiki.multitheftauto.com/wiki/XmlLoadString

 

But keep in mind that there is no MTA function yet to convert it back to a string. (unless you make one yourself)

Edited by IIYAMA
  • Like 1
Link to post

 

12 hours ago, IIYAMA said:

You can read xml from a string. So you got your xml tree scoped by your own script.

https://wiki.multitheftauto.com/wiki/XmlLoadString

 

But keep in mind that there is no MTA function yet to convert it back to a string. (unless you make one yourself)

Thanks for help but finally i made a function which renew xml from file always when player is starting client resource, thanks one more time. 

/to close

  • Like 1
Link to post
  • IIYAMA locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...