Jump to content

Adding custom objects in the Map Editor


Grinch_

Recommended Posts

Posted

I added objects to MTA like this,
 

local txd = engineLoadTXD(name .. '.txd',true) 
engineImportTXD(txd, model) 
      
local dff = engineLoadDFF(name .. '.dff', 0)  
engineReplaceModel(dff, model) 

local col = engineLoadCOL(name .. '.col')  
engineReplaceCOL(col, model) 
engineSetModelLODDistance(model, 500) 

Also edited the map editor browser to show these objects but when I seem to use model ids above 19000 they don't seem to render (last rendered model seems to stay, dustbin) and when I try to place them a dustbin is being selected.

spacer.png

But using 18360 or smth lower than 19000 seems to work. Is there a way to make it work with these ids?

Posted

Actually, you can only replace base gta sa's object with MTA

Take a look here https://dev.prineside.com/en/gtasa_samp_model_id/

Let's search for example the 18365 object 

unknown.png 

Here it's a gta sa object, so you can replace it without any issue

 

But for the model 19214 (wich you are currently browsing), here is what it gives us :

unknown.png

As you can see, it's an SA-MP model ID so you can't replace it on MTA (in fact, this ID just doesnt exist in MTA)

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
  • Recently Browsing   0 members

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