JeViCo Posted August 7, 2018 Share Posted August 7, 2018 Hello everyone! Is it possible to add/remove something? For example i have ~20 .txd and .dff models and i want to add them with script (not software) automatically Link to comment
Overkillz Posted August 7, 2018 Share Posted August 7, 2018 You need to create your own fileRead system to compile the TXD / DFF files with teaEncode and base64encode I guess. It is the best choice imo. Regards. Link to comment
JeViCo Posted August 7, 2018 Author Share Posted August 7, 2018 32 minutes ago, Overkillz said: You need to create your own fileRead system to compile the TXD / DFF files with teaEncode and base64encode I guess. It is the best choice imo. Regards. Oh, you get it. Well, my system creates compiled file. I can't use it because it isn't in meta.xml. Also it gets different password each time(deletes old file and creates new one) so i want to update changes directly somehow Link to comment
Overkillz Posted August 7, 2018 Share Posted August 7, 2018 as far as I know, you can set a property in meta.xml <file src="fileName.TXD/DFF" download="false" /> Well, if you update/create another system to compile the file without requesting to change it a password each time u can keep the file on the client cache and it cant be used in other servers and I think thats your goal. Link to comment
JeViCo Posted August 7, 2018 Author Share Posted August 7, 2018 9 minutes ago, Overkillz said: as far as I know, you can set a property in meta.xml <file src="fileName.TXD/DFF" download="false" /> Well, if you update/create another system to compile the file without requesting to change it a password each time u can keep the file on the client cache and it cant be used in other servers and I think thats your goal. everything is server-side so i can't just re-write original .dff or .txd file. I just want to add new one. I tried but it don't work for me :с Link to comment
Berko Posted August 7, 2018 Share Posted August 7, 2018 28 minutes ago, Juuve said: everything is server-side so i can't just re-write original .dff or .txd file. I just want to add new one. I tried but it don't work for me :с example: -- client function onResourceStart() engineImportTXD(engineLoadTXD ( "myTxd.txd" ), --[[ ID Object -> --]] 3976) end addEventHandler("onClientResourceStart",resourceRoot,onResourceStart) -- meta <meta> <script src="berko.lua" type="client" /> <file src="myTxd.txd" download="false" /> </meta> Link to comment
JeViCo Posted August 7, 2018 Author Share Posted August 7, 2018 11 minutes ago, Berko said: example: -- client function onResourceStart() engineImportTXD(engineLoadTXD ( "myTxd.txd" ), --[[ ID Object -> --]] 3976) end addEventHandler("onClientResourceStart",resourceRoot,onResourceStart) -- meta <meta> <script src="berko.lua" type="client" /> <file src="myTxd.txd" download="false" /> </meta> it doesn't work. I can't believe that editing meta.xml ingame is impossible\ Link to comment
Berko Posted August 7, 2018 Share Posted August 7, 2018 Just now, Juuve said: it doesn't work. I can't believe that editing meta.xml ingame is impossible\ What is the error that prints you in a list debugscript? Link to comment
JeViCo Posted August 7, 2018 Author Share Posted August 7, 2018 23 minutes ago, Berko said: What is the error that prints you in a list debugscript? engineLoadTXD ( "myTxd.txd" ) error loading myTxd.txd and that's it. i added to meta.xml txd file. Client can't find this file so it gives errors. Link to comment
Berko Posted August 7, 2018 Share Posted August 7, 2018 Just now, Juuve said: engineLoadTXD ( "myTxd.txd" ) error loading myTxd.txd and that's it. i added to meta.xml txd file. Client can't find this file so it gives errors. https://wiki.multitheftauto.com/wiki/EngineLoadTXD 1 Link to comment
JeViCo Posted August 7, 2018 Author Share Posted August 7, 2018 solved my problem using buffer. Thanks everyone anyway Link to comment
Berko Posted August 7, 2018 Share Posted August 7, 2018 Just now, Juuve said: solved my problem using buffer. Thanks everyone anyway you're welcome anytime 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