Polak0 Posted July 4, 2018 Posted July 4, 2018 (edited) Hello. For some time I have been making models for MTA:SA, and I am wondering if one can encode * .dff, * .txd and * .col files? If so, how, I do not mean methods such as (dff protection by 3ds max *the LOCK DFF* option, but for something else, to change the format other than dff, col and txd. Sorry for my english, i've using google translate ;v Edited July 4, 2018 by Polak0
Moderators IIYAMA Posted July 4, 2018 Moderators Posted July 4, 2018 You can do some stuff with MTA Lua functions, but you need to know Lua for that. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Polak0 Posted July 4, 2018 Author Posted July 4, 2018 Okay, you could give this code because I do not understand a bit lua .
Moderators IIYAMA Posted July 4, 2018 Moderators Posted July 4, 2018 (edited) Nope, I am following the forum rules. The only thing I can do for you, is pointing you to the right information. Or helping you with the code you haven't written yet. https://wiki.multitheftauto.com/wiki/TeaEncode Edited July 4, 2018 by IIYAMA Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Mr.Loki Posted July 4, 2018 Posted July 4, 2018 All the functions you will need to do this: FileRead TeaEncode FileCreate FileWrite FileClose Try creating something and if it does not work post ya code here and we'll help. [REL]Cinema Experience Beta 2.0 [TUT]Object offsets with OOP. [TUT] Adding a Discord bot to your server. Discord: Loki#7355
Moderators Pirulax Posted July 4, 2018 Moderators Posted July 4, 2018 Read the dff/col/txd file, then use base64Encode(which Mr.Loki forgot), then encode the string u got, then write it. And there you have ur encoded file. To load it, you'll need the key you provided to T.E.A. base64Decode, with that you'll get the bytes, pass the bytes to the function (engineLoadlDFF, and such,be sure it accepts raw data) 2
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