iiiSolom Posted April 25, 2020 Share Posted April 25, 2020 Hi, I made model using 3DS Max 2017 and I want to know how to converted to mta Link to comment
Administrators Tut Posted April 25, 2020 Administrators Share Posted April 25, 2020 Hello. You can use the function engineReplaceModel for replacing an existing object ID with your custom object. Below is an example script which I personally use on my local development server. col = engineLoadCOL ("9504.col") engineReplaceCOL (col, 9504) txd = engineLoadTXD ("9504.txd") engineImportTXD (txd, 9504) dff = engineLoadDFF ("9504.dff") engineReplaceModel (dff,9504,true) ^file is "replace.Lua" The ,true enables alpha transparency. If your model doesn't use alpha you should not have to include it. <meta> <info type="misc" name="models" author="yourname" description="custom models for my server" version="1.5" /> <file src="9504.col" /> <file src="9504.txd" /> <file src="9504.dff" /> <script type="client" src="replace.Lua" /> </meta> ^file is "meta.xml" Simply create those 2 resource files in your resource folder and export the dff, txd, col models there. 1 Link to comment
iiiSolom Posted April 26, 2020 Author Share Posted April 26, 2020 4 hours ago, Tut said: مرحبا. يمكنك استخدام وظيفة engineReplaceModel لاستبدال معرف كائن موجود بكائن مخصص. فيما يلي مثال للنص البرمجي الذي أستخدمه شخصيًا على خادم التطوير المحلي. ^ الملف هو "replace.Lua" و ، صحيح تمكن ألفا الشفافية. إذا كان نموذجك لا يستخدم ألفا ، فلا يجب عليك تضمينه. ^ الملف هو "meta.xml" ما عليك سوى إنشاء ملفي الموارد هذين في مجلد الموارد وتصدير نماذج dff و txd و col هناك. thank you bro 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