zombienation Posted January 10, 2012 Posted January 10, 2012 (edited) 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 January 10, 2012 by Guest
Castillo Posted January 10, 2012 Posted January 10, 2012 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 )
zombienation Posted January 10, 2012 Author Posted January 10, 2012 thx again man i already learned a lot from your help
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