Vazern Posted March 10, 2017 Posted March 10, 2017 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)
3aGl3 Posted March 10, 2017 Posted March 10, 2017 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.
Vazern Posted March 10, 2017 Author Posted March 10, 2017 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)
F4sT Posted March 10, 2017 Posted March 10, 2017 (edited) 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 March 10, 2017 by F4sT
Vazern Posted March 11, 2017 Author Posted March 11, 2017 (edited) Continued the same thing, I think it is are the files of the mask that are corrupted, I will test another. Edited March 11, 2017 by <creePy/>
Vazern Posted March 11, 2017 Author Posted March 11, 2017 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.
Ayush Rathore Posted March 12, 2017 Posted March 12, 2017 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
3aGl3 Posted March 12, 2017 Posted March 12, 2017 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.
Vazern Posted March 13, 2017 Author Posted March 13, 2017 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)
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