Jump to content
  • 0

Replace model error!


rusztamas

Question

Hello guys! Today, i tried to replace a default San Andreas model with an exported VC model. We know, that both versions uses dff and txd for their models, and their textures. But when i put the model in to my server, it outputted in my debug script, that it could not replace the model. What the problem could be?

ad_www.kepfeltoltes.hu_.png

ID = 2 
  
function TXDFile() 
    TXD = engineLoadTXD("name.txd") 
    engineImportTXD(TXD, 2) 
end 
addEventHandler("onClientResourceStart",resourceRoot,TXDFile) 
  
  
function DFFFile() 
        DFF=engineLoadDFF("name.dff") 
        engineReplaceModel(DFF, 2) 
end 
addEventHandler("onClientResourceStart",resourceRoot,DFFFile) 

>    author="tylerbcass" type="script" description="kocsi_1"/>        ="script.lua" type="client"/>    src="name.txd"/>    src="name.dff"/>>     

name.txd and name.dff is excisting in the main directory of the script. The original name of the model and the texture is play10.txd and play10.dff, exported from Grand Theft Auto Vice City's gta3.img.

Complete script, for staff:

http://upload.mtasa.com/u/188073455/vicestuff.rar_

Link to comment

2 answers to this question

Recommended Posts

  • 0
  • MTA Team

The TXD and DFF are in Vice City format.

To fix up the TXD, load it into TXD Workshop then select 'San Andreas' in the bottom right and save.

I don't know how to fix up the DFF.

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