Jump to content

Add new objects to MTA


Oxsotus

Recommended Posts

Hi!

How can I add new objects to MTA?

I replace the model:

local dff1 = engineLoadDFF('lvhouse1.dff', 19497) 
local dff2 = engineLoadDFF('lvhouse1int.dff', 19498)  
engineReplaceModel(dff1, 19497) 
engineReplaceModel(dff2, 19498) 

So, not replace, because the 19497 is empty, but it isn't write an error at replace.

When I want to create the object, it's has an error.

[2013-07-14 05:35:39] WARNING: rpg\start_server.lua:11: Bad usage @ 'createObject' [invalid model id] 
[2013-07-14 05:35:39] WARNING: rpg\start_server.lua:12: Bad usage @ 'createObject' [invalid model id] 

How can I add the ID "19498" to the server?

Link to comment
You can't add new objects. You have to stick with replacing them, sorry.

Wrong.

You can add new objects with some knowlegde, just replace a object which is farther away from you, so that it will look like a new object, when the object streams out you need to unload the model, etc.

Link to comment

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...