Jump to content

how to add skinmods manually


zombienation

Recommended Posts

hello,

i would like to find out how to add skin mods manually without using the modloader script,

i was trying to do it with a script i have on the pc of a carmod, i tried to change reloadcar to reloadskin and such changings but it didn't worked,

is this possible to do it for skins to by using this or parts of this scripts? if yes what do i have to do for it?

thanks

function replaceModel()  
   txd = engineLoadTXD("banshee.txd", 429 ) 
  engineImportTXD(txd, 429) 
  dff = engineLoadDFF("banshee.dff", 429 ) 
  engineReplaceModel(dff, 429) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 
  
addCommandHandler ( "reloadcar", replaceModel ) 

Edited by Guest
Link to comment
function replaceModel() 
   local ID = 29 
   txd = engineLoadTXD("mySkin.txd", ID) 
  engineImportTXD(txd, ID) 
  dff = engineLoadDFF("mySkin.dff", 0) -- When you're replacing something else than a vehicle the ID must be 0. 
  engineReplaceModel(dff, ID) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, replaceModel) 
  
addCommandHandler ( "reloadskin", replaceModel ) 

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