I would like to access the raw xml data, e.g. from all vehicles.meta combined. Without having to extract them and process them to a json ending up sending 5MB more to clients than needed.
It is not just the vehicles.meta’s I would like to get data from…
If you want to replace certain UI parts e.g. you might want to access the vehicle meta to get certain information out of there, like the manufacturer.
Or there is a large file with all preconfigured outfits in the gamefiles. If you could access it, then a random ped composition on freemode models might not need to look shit anymore.
I guess that means the general answer is very likely no. Time export all the meta files I need to json and migrate to C# completely. If I have to send now like maybe 50MBs of data to the client I might at least compress them beforehand.
Because to implement certain things to buy you could e.g. access shop_tattoo.meta instead of implementing the tattoo data yourself. Want to browse outfits? scriptmetadata.meta Shop vehicles? Well I think it is clear by now.
At the moment you would need to implement all data again, that you want to use in a variation, instead of starting with the core meta files and replacing them, if needed. Or just use their data partially.
but many/most of the natives need knowledge prior to calling the natives that you could get from the data files instead of hardcoding it.
If I would ask you to get a list of all vehicles in game including maybe the cost (in one of the metafiles) and then sort them by manufacturer. What would you do?
At the end of the day, you would still have to hardcode all the vehicle names / hashes or just iterate blindly through the hashes. Unless I am missing something.