Jump to content

[Help] Error converting clothes


Vazern

Recommended Posts

I can not convert a mask, I used this code below, but at the time of selecting the MTA date.

P.S: I have already tested other types of masks and still crashes.

(Google Translate)

 

txd = engineLoadTXD("hockey.txd")
engineImportTXD(txd, 30376) 
dff = engineLoadDFF("hockeymask.dff",30376)
engineReplaceModel(dff, 30376)

 

Link to comment

The code looks like it's ok, however this should be enough.

txd = engineLoadTXD("hockey.txd")
engineImportTXD(txd, 30376) 
dff = engineLoadDFF("hockeymask.dff")
engineReplaceModel(dff, 30376)

If you want any further help please post any error you get etc. I'm also not sure about the names but I personally never used different names for the txd and dff.

Link to comment
57 minutes ago, 3aGl3 said:

The code looks like it's ok, however this should be enough.


txd = engineLoadTXD("hockey.txd")
engineImportTXD(txd, 30376) 
dff = engineLoadDFF("hockeymask.dff")
engineReplaceModel(dff, 30376)

If you want any further help please post any error you get etc. I'm also not sure about the names but I personally never used different names for the txd and dff.

Actually, I used to have the same names as txd and dff, but I changed it, I think the error is not related to that.

(Google Translate)

Link to comment
function loadMods ( startedResource ) 
if ( startedResource == getThisResource() ) then 
txd = engineLoadTXD("hockey.txd")
engineImportTXD(txd, 30376) 
dff = engineLoadDFF("hockeymask.dff")
engineReplaceModel(dff, 30376)
             end 
end 

addEventHandler ( "onClientResourceStart", getRootElement(), loadMods )

I think that it will work . Try.

Edited by F4sT
Link to comment
14 hours ago, <creePy/> said:

I tested another model and it continued the same thing, the MTA closes when I select it in the list of clothes of the freeroam.

login as admin in server and type /debugscript 2 in chat and then start this resource and then tell the error it cause you will see the error in middle bottom with red color

Link to comment
14 hours ago, <creePy/> said:

I tested another model and it continued the same thing, the MTA closes when I select it in the list of clothes of the freeroam.

It seems your model is invalid, try to open it in dff viewer or similar.
The MTA server will also notify you about broken dff files, however that isn't always 100% accurate, I'm using a couple dffs that MTA reports as broken.

Link to comment

I was informed that it is no use to convert masks and use them for freeroam. The appropriate method is to swap the dff and txd of a small map object and use bone_attach to place them on the player's face. This method worked for me.

(Google Translate)

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