Jump to content

Infernus skin


aRc

Recommended Posts

Posted

Hey guys!

I've made an infernus skin and import to .txd.

When I put it into the game it looks the old.

What I need to do with the .dff?:/

Posted
function onResourceStart() 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) 
  
txd = engineLoadTXD ( "infernus.txd",411 ) 
engineImportTXD ( txd, 411 )   
  
dff = engineLoadDFF ( "infernus.dff", 411) 
engineReplaceModel ( dff, 411 ) 

Posted

or

http://i.imgur.com/I5nmTwA.png

euros = engineLoadTXD ( "euros.txd" )  
engineImportTXD ( euros, 587 ) 
euros = engineLoadDFF ( "euros.dff", 587 ) -- change the "euros" to infernus and the model id to infernus ID 
engineReplaceModel ( euros, 587 ) 

meta

<meta> 
<script src="kocsimod.lua" type="client"/> 
<file src="euros.txd"/> 
<file src="euros.dff"/> 
</meta> 

Posted
dff = engineLoadDFF ( "filename.dff", 411) 
engineReplaceModel ( dff, 411 ) 
txd = engineLoadTXD ( "filename.txd",411 ) 
engineImportTXD ( txd, 411 ) 

meta.xml

<meta> 
<info author="aRc" type="script" name="infernus skin" /> 
<script src="infernusskin.lua" type="client" /> 
<file src="filename.dff" /> 
<file src="filename.txd" /> 
</meta> 

Posted
local myMods = { 
     -- file name, replaces 
     {"filename",411}, 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, function() 
     for _,theMod in ipairs(myMods) do 
          local file = theMod[1] 
          local id = theMod[2]      
  
          local txd = engineLoadTXD (file .. ".txd" ) 
          engineImportTXD ( txd, id ) 
          local dff = engineLoadDFF (file .. ".dff", id ) 
          engineReplaceModel ( dff, id ) 
     end 
end) 

if you are going to have multiple mods, use this.. easier than the engineLoad stuff 500 times.

hi i script and stuff

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