Jump to content

Problem replacing model


Gravestone

Recommended Posts

I replaced car models but they are not exactly like I want. They are appearing kinda white. TXD and DFF, both are loaded and working, no problems with the script but the skin is coming a bit white.

function replaceModel()  
  txd = engineLoadTXD("feltzer.txd", 415 ) 
  engineImportTXD(dff, 415) 
  dff = engineLoadDFF("feltzer.dff", 415 ) 
  engineReplaceModel(dff, 415) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 
  
addCommandHandler ( "refreshmodels", replaceModel ) 

Link to comment
function replaceModel() 
  txd = engineLoadTXD("feltzer.txd", 415 ) 
  engineImportTXD(txd, 415) 
  dff = engineLoadDFF("feltzer.dff", 415 ) 
  engineReplaceModel(dff, 415) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, replaceModel) 
  
addCommandHandler ( "refreshmodels", replaceModel ) 

Link to comment

Is your file located in a subfolder? Did you add the file as a client sided file in your xml?

<file src="feltzer.txd" type="client" /> 

I didn't read the first post, my bad. If you're replacing a car that isn't working or turns out different than you thought, it might be the file that has been corrupted due to downloading/uploading/exporting. Try to use another model since this isn't really MTA related, more like.. the designer's fault.

Another thing that designers love to do is modify their game with a sh*tload of shaders to make them look better, while you don't have these shaders on your game and it turns out as pretty cheap plastic. :lol:

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