mox.workz Posted April 9, 2015 Posted April 9, 2015 (edited) Hi guyz! Sorry for bothering you again., Cause I'm currently modifying my server. I just downloaded an Iron Man Skin pack., and I wonder if it is possible to put it on my server? it has this .txd and .dff files that is similar to what's inside the gta3.img I wonder if I could add it to the .img file and manually encode a script to add it on the skin list in my server., I also added the Super Powers - Slothman as a resource. What i would like to do is that the player will automatically transform it's skin into an Iron Man or other skin when they choose a certain Element Please Help _________________________________________________________________________________ Super Powers by Slothman: https://forum.multitheftauto.com/viewtopic.php?f=108&t=53505 Edited April 9, 2015 by Guest
Mr.unpredictable. Posted April 9, 2015 Posted April 9, 2015 Add the skins in your resource folder and Use the Engine functions Ex: Client side function ironman() local txd = engineLoadTXD ( "yourtxdfilename.txd" ) -------- Your txd file name engineImportTXD ( txd, Id ) ----------------------------- Skin Id of the ped which you want to replace with local dff = engineLoadDFF ( "Yourdfffilename.dff", id ) ------------------- your dff file name and id engineReplaceModel ( dff, id ) ----------------- Id end addEventHandler("onClientResourceStart", getRootElement(), ironman) Meta: add these lines in your meta <file src="yourtxdfilename.txd"></file> <file src="yourdfffilename.dff"></file>
mox.workz Posted April 9, 2015 Author Posted April 9, 2015 Add the skins in your resource folder and Use the Engine functionsEx: Client side function ironman() local txd = engineLoadTXD ( "yourtxdfilename.txd" ) -------- Your txd file name engineImportTXD ( txd, Id ) ----------------------------- Skin Id of the ped which you want to replace with local dff = engineLoadDFF ( "Yourdfffilename.dff", id ) ------------------- your dff file name and id engineReplaceModel ( dff, id ) ----------------- Id end addEventHandler("onClientResourceStart", getRootElement(), ironman) Meta: add these lines in your meta <file src="yourtxdfilename.txd"></file> <file src="yourdfffilename.dff"></file> Wow! It Worked!! Thnx!!
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