Ice_Cool Posted October 12, 2019 Share Posted October 12, 2019 (edited) Hello everyone, hope you're doing well! Guys i am just a beginner to MTA Scripting and i encountered a problem that i tried to solve by self for hours but unfortunately could not. Actually i have created a Prison Model in 3D Max and after export i got .txd, .dff and .col files. What i want to do is add this in my server as an interior. Soon after creating an interior model in 3D Max i stuck between objects and interiors concept, i wonder if i follow this https://forum.multitheftauto.com/topic/35801-tut-adding-custom-objects-in-mta/ topic and try to add my int in server i have to replace it with an 'Object' which is not what i want. I basically want to add my own custom interior but i don't know how i can? i looked around but found nothing, hopefully one of you will resolve my problem and give me an opportunity to learn and enhance. Thanking you in advance for a positive reply. Best regards, Edited October 12, 2019 by Ice_Cool Link to comment
Administrators Tut Posted October 12, 2019 Administrators Share Posted October 12, 2019 (edited) Hi, currently it's not possible to add models independant of ID system, you'll have to replace another model using engineReplaceModel. I'm sure you can find a couple of models from casino category to replace without any harm done. Btw, if you absolutely do need all colors of the casino items, you could apply shaders to one of them and replace the rest. https://dev.prineside.com/en/gtasa_samp_model_id/category/casino-items?page=1 From what I've seen, you can replace a model and set it to only load whilst in a specific dimension, meaning you can replace Sultan in dimension 2 but have default model in dimension 0. I'm not into scripting so can't help on that part. I'm guessing this would work fine considering your model is an interior? Edited October 12, 2019 by Tut note Link to comment
Ice_Cool Posted October 12, 2019 Author Share Posted October 12, 2019 Brother maybe you're right but I really didn't get you. I don't want to have an object. I want to add my own interior. Even guess I replace it with any object how am I suppose to wrap to my interior? I am currently trying to have a custom interior for a prison but idk how set my interior that I designed in 3D Max. I thought if I could replace it with existing interiors but they have x, y, z positions and not just model ID. Link to comment
justn Posted October 12, 2019 Share Posted October 12, 2019 (edited) -- Replace an MTA Object with your custom interior model using these engineLoadDFF engineReplaceModel engineLoadCOL engineReplaceCOL engineLoadTXD engineImportTXD -- Create the model using createObject -- Set the object to an interior using setElementInterior Where you warp depends on where you create it Edited October 12, 2019 by Shux Link to comment
murilo2929 Posted October 12, 2019 Share Posted October 12, 2019 8 hours ago, Ice_Cool said: Brother maybe you're right but I really didn't get you. I don't want to have an object. I want to add my own interior. Even guess I replace it with any object how am I suppose to wrap to my interior? I am currently trying to have a custom interior for a prison but idk how set my interior that I designed in 3D Max. I thought if I could replace it with existing interiors but they have x, y, z positions and not just model ID. I think I understand what you want to do, for you to do that just go to the map editor and put your custom model somewhere in the map of preference below it, and get his position, if it has a door goes near it and get the coordinates then you get those coordinates and put them in your interior script. 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