Jump to content

[TUT] Adding Custom objects in MTA!


Bussy-E

Recommended Posts

Hey guys. I've made 2 videos about adding Custom objects in MTA.

Videos:

Part 1

Part 2

Programs you'll need:

3DS Max (2009 or 2010, but if you have other It may work too!)

Col Editor 2

TXD Workshop

Extra stuff you'll need:

GTA Scripts for 3DS Max (Put them in 3dsmax folder\Scripts)

Example resource:

DOWNLOAD

..................

Text that you have to put in the meta file:

<meta> 
    <script src="custom.lua" type="client" /> 
    <file src="files/yourfilename.txd" /> 
    <file src="files/yourfilename.dff" /> 
    <file src="files/yourfilename.col" /> 
</meta> 

Text that you have to put in the .Lua file (Script):

addEventHandler('onClientResourceStart', resourceRoot,  
    function()  
        outputChatBox ( "Test") 
  
        local txd = engineLoadTXD('files/yourfilename.txd',true) 
        engineImportTXD(txd, 2052) 
  
        local dff = engineLoadDFF('files/yourfilename.dff', 0)  
        engineReplaceModel(dff, 2052) 
  
        local col = engineLoadCOL('files/yourfilename.col')  
        engineReplaceCOL(col, 2052) 
        engineSetModelLODDistance(2052, 500) 
    end  
) 

P.S. My native language is not English, so I have some mistakes, but I think you'll understand the shit I'm talking :D

  • Like 1
  • Thanks 2
Link to comment
  • 1 year later...
Hey guys. I've made 2 videos about adding Custom objects in MTA.

Videos:

Part 1

Part 2

Programs you'll need:

3DS Max (2009 or 2010, but if you have other It may work too!)

Col Editor 2

TXD Workshop

Extra stuff you'll need:

GTA Scripts for 3DS Max (Put them in 3dsmax folder\Scripts)

Example resource:

DOWNLOAD

..................

Text that you have to put in the meta file:

<meta> 
    <script src="custom.lua" type="client" /> 
    <file src="files/yourfilename.txd" /> 
    <file src="files/yourfilename.dff" /> 
    <file src="files/yourfilename.col" /> 
</meta> 

Text that you have to put in the .Lua file (Script):

addEventHandler('onClientResourceStart', resourceRoot,  
    function()  
        outputChatBox ( "Test") 
  
        local txd = engineLoadTXD('files/yourfilename.txd',true) 
        engineImportTXD(txd, 2052) 
  
        local dff = engineLoadDFF('files/yourfilename.dff', 0)  
        engineReplaceModel(dff, 2052) 
  
        local col = engineLoadCOL('files/yourfilename.col')  
        engineReplaceCOL(col, 2052) 
        engineSetModelLODDistance(2052, 500) 
    end  
) 

P.S. My native language is not English, so I have some mistakes, but I think you'll understand the :~ I'm talking :D

thnks for the tutorial i finally finish converting all drifting custom maps like okaru, fantasy , akina , & many more thnks ^^ heres the video

Link to comment
  • 2 months later...
  • 1 month later...
  • 7 months later...
  • 10 months later...
  • 1 year later...

Well I made the stuff.....  But how about vehicle tutorials!?  You make a ship that's got a steering wheel at top while it was originally at bottom.....  How the heck you move the position?  And then there's the small fact of sizes.......  What size is it from 3D Max to in game!?  Is 0.1 in 3D Max equal to 1 meter on MTA?  These are sort of needed pieces of information :P still an amazing tutorial, I learned a LOT. :D

Link to comment
  • 7 months later...
On 4/12/2012 at 22:21, Bussy-E said:

 


addEventHandler('onClientResourceStart', resourceRoot,  
    function()  
        outputChatBox ( "Test") 
  
        local txd = engineLoadTXD('files/yourfilename.txd',true) 
        engineImportTXD(txd, 2052) 
  
        local dff = engineLoadDFF('files/yourfilename.dff', 0)  
        engineReplaceModel(dff, 2052) 
  
        local col = engineLoadCOL('files/yourfilename.col')  
        engineReplaceCOL(col, 2052) 
        engineSetModelLODDistance(2052, 500) 
    end  
) 
 

is the object with ID 2052 replace with the object that we created ?? and all the objects existing in the map with ID 2052 will replace or not ??

Link to comment
  • 4 weeks later...
  • 1 month later...

@Falk

Just use "col editor 2" to convert your .cst file to .col file. [ that is mentioned  in the TUT sweetly ]

Download Col Editor 2

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

My Problem :-

Alright, first Thank You very much @Bussy-E for your great TUT....!!! Alright, i follow your steps of videos in TUT yes, and i have create a BOX. Alright, And i add it into the server and start the resource alright?. The object 2052 has been changed  to a BOX shape, yes. But,  only 3 sides  are only seen in that BOX alright.  The other 3 sides were  missed O.o Yes.... So,,, What should i do to visible that missed 3 faces of the BOX ?? and i recognised that the problem is in .DFF file of the object. How to fix this ?? [ Please Anyone Help Me ..!!! ]

Edited by DeadthStrock
Link to comment
  • 1 year later...

@koko1238640 You must attach all the objects together .... Convert your objects to an editable poly then go to modify settings on left side toolbar then see for Edit Geometry options there you must see Attach.

 see this video at 4.25

----------------------------------------------------------------------------------------------------------

@DeadthStrock

On 17/05/2018 at 16:43, DeadthStrock said:

@Falk

Just use "col editor 2" to convert your .cst file to .col file. [ that is mentioned  in the TUT sweetly ]

Download Col Editor 2

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

My Problem :-

Alright, first Thank You very much @Bussy-E for your great TUT....!!! Alright, i follow your steps of videos in TUT yes, and i have create a BOX. Alright, And i add it into the server and start the resource alright?. The object 2052 has been changed  to a BOX shape, yes. But,  only 3 sides  are only seen in that BOX alright.  The other 3 sides were  missed O.o Yes.... So,,, What should i do to visible that missed 3 faces of the BOX ?? and i recognised that the problem is in .DFF file of the object. How to fix this ?? [ Please Anyone Help Me ..!!! ]

Did you find a fix for this? Cause i too recently have your problem with the box thing....help pls

Edited by Bruce
Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...