Stacey Posted September 15, 2015 Share Posted September 15, 2015 (edited) Hi I've been creating maps for SA for years now, but I am new to MTA as I have only just discovered you can add your own custom models to server. So i followed a few tutorials online to add models to a server but they always have the same outcome, the original model is never being replaced. I followed 4 tutorials atleast 3 times but still nothing. Firstly I created and exported a simple carpark in 3DS max Added to my IMG, IDE and IPL to test before I put into MTA and it worked fine. 1st time I tried adding a model to MTA i just copied their script and changed the file names to carpark.dff, ect, but it didn't work, I created a basic script to add the message "did it work?" for when i start the script and that worked fine. So I fiddled around with the 1st script to try and get it working but it only come up with the "did it work" text. I tried another tutorial and this time they used 50's map exporting script to create a .map file and automatically create the meta and lua, but it's doing exactly the same thing. When I type 'start test' (name of resource folder) in the console, the loading bar comes up and "did it work" comes up but when I search the ID that my model is meant to be replacing it hasn't changed. Is there another command I should be typing? Is my script wrong? Can somebody please help me? I have a couple of ideas but not sure, in the .lua file, there are "..'s" next to the file names, are they meant to be there? Also the first script I made didnt have "temp" next to local. Do you think these are the problem? This script was auto generated so I don't think it would be the problem Edited September 15, 2015 by Guest Link to comment
JR10 Posted September 15, 2015 Share Posted September 15, 2015 The paths basically translate to map/carparkcarpark.dff and the same for .col and .txd. Remove the "/carpark" from the modelNames table. Also, there's no function called engineReplaceTXD, it's engineImportTXD. You should first import the txd, then replace the model. Link to comment
Stacey Posted September 15, 2015 Author Share Posted September 15, 2015 oh i see, when it created the LUA automatically, i assumed i had to insert the model names myself, and also the exporter doesnt work with TXD's so i attempted to add it myself lol fail. Thanks i will try it now Link to comment
Stacey Posted September 15, 2015 Author Share Posted September 15, 2015 so like this? Link to comment
JR10 Posted September 15, 2015 Share Posted September 15, 2015 Looks like it, try reordering so that the engineLoadTXD followed by engineImportTXD is executed first. Link to comment
Stacey Posted September 15, 2015 Author Share Posted September 15, 2015 thanks for your help. The model worked But like you said the TXD is not being loaded. I've only just seen your reply so I will try it now. So you mean like this?.. Link to comment
Stacey Posted September 15, 2015 Author Share Posted September 15, 2015 Yay it worked. thank you so much for your help!!! Link to comment
JR10 Posted September 15, 2015 Share Posted September 15, 2015 For what it's worth, it looks pretty cool. Link to comment
Stacey Posted September 16, 2015 Author Share Posted September 16, 2015 Thank you it's very basic though, didnt want to waste too much time on it so I just used 3 seamless textures with a box uvw map. Going to unwrap some better textures from it now that I know how to add it to MTA 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