It is possible, Im using MTA Editor about eight years now. But its kinda difficult at first attempt.
Programs you'll need:
Col Editor
TXD Workshop
Steps:
1. You need to export .txd, .dff, .col files of object whic you want to add to MTA Editor.
2. You need to put them in one directory from whic u will import object in your MTA Editor via script.
3. You need to make a .meta file and put this in:
Код:
<meta>
<script src="custom.lua" type="client" />
<file src="files/yourobject.txd" />
<file src="files/yourobject.dff" />
<file src="files/yourobject.col" />
</meta>
4. After that you will need to make a script in .lua format:
Код:
addEventHandler('onClientResourceStart', resourceRoot,
function()
outputChatBox ( "New Objects Added!")
local txd = engineLoadTXD('files/yourobject.txd',true)
engineImportTXD(txd, 2052)
local dff = engineLoadDFF('files/yourobject.dff', 0)
engineReplaceModel(dff, 2052)
local col = engineLoadCOL('files/yourobject.col')
engineReplaceCOL(col, 2052)
engineSetModelLODDistance(2052, 500)
end
)
2052 - That is the ID of object whic will replace your for example 0.3.7 object.
So whats the point? You need to replace default MTA Editor object with new one.
5. Name the folder for example: Newobject , and when u enter the MTA Editor u start the script with /start Newobject