Jump to content

[SOLVED] Iron man Pack!


Recommended Posts

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 by Guest
Link to comment

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> 

Link to comment
  unpredictable said:
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> 

Wow! It Worked!! Thnx!! :fadein:

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