Jump to content

Infernus skin


aRc

Recommended Posts

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

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

Link to comment
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.

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