Sign in to follow this  
Bussy-E

[TUT] Adding Custom objects in MTA!

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

Share this post


Link to post
not a tutorial.

in before the lock

This is a tutorial, look at the videos.

Share this post


Link to post

Misleading title.

should be "[TUT] Creating custom objects"

Share this post


Link to post
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

Share this post


Link to post

Is that thing will work to custom particle effects?

Share this post


Link to post

Hi...

I make one box and is colored to 3 sides....and is not colored to 6 sides...as it should

the other three sides are transparent

why??

Share this post


Link to post

Well, Is there any option i can export it like export.resource:loadTxd() ?

Share this post


Link to post

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

Share this post


Link to post
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 ??

Share this post


Link to post

It'll replace the existing ones too.

Share this post


Link to post

Hey!

 

My problem is: I create COL Script file but no convert .col file  just convert .cst file....why?

 

Share this post


Link to post

@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

Share this post


Link to post
Posted (edited)

@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

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.