Oxsotus Posted July 14, 2013 Share Posted July 14, 2013 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
HunT Posted July 14, 2013 Share Posted July 14, 2013 Where is the script with function createObject? Link to comment
Moderators IIYAMA Posted July 14, 2013 Moderators Share Posted July 14, 2013 You can't add new objects. You have to stick with replacing them, sorry. Link to comment
denny199 Posted July 14, 2013 Share Posted July 14, 2013 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
Moderators IIYAMA Posted July 14, 2013 Moderators Share Posted July 14, 2013 That is just another way of doing, it isn't adding more objects. Well let me call it: faking the players Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now