Luther123 Posted December 22, 2011 Posted December 22, 2011 hi,when i try to replace a skin with the skins i downloaded from gtainside.com it doesnt work and here's the code that i am using function onResourceStart() TV = engineLoadTXD ( "skins/285.txd" ) engineImportTXD ( TV, 285 ) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart)
myonlake Posted December 22, 2011 Posted December 22, 2011 You need to add it in the meta.xml aswell. If I helped you, please click the like button on the right Thanks!
Luther123 Posted December 22, 2011 Author Posted December 22, 2011 Any errors? no,there are no errors,its just like when i come ingame nothing happends to the skin.
Luther123 Posted December 22, 2011 Author Posted December 22, 2011 You need to add it in the meta.xml aswell. i already did that..
Slothman Posted December 22, 2011 Posted December 22, 2011 try setting a delay timer for 1-2 seconds after the resource starts, instead of doing it right at the resource start. function onResourceStart() setTimer ( replaceSkin , 1234, 1) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) function replaceSkin() TV = engineLoadTXD ( "skins/285.txd" ) engineImportTXD ( TV, 285 ) end I found this helped skins load more reliably in the past, might help you. Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
Xeno Posted December 22, 2011 Posted December 22, 2011 If what Slothman said doesnt work, it may be an error with the actual skin.
myonlake Posted December 22, 2011 Posted December 22, 2011 Are you sure you've put it on client side? Check if the meta.xml is type="client". If I helped you, please click the like button on the right Thanks!
Buffalo Posted December 22, 2011 Posted December 22, 2011 Could you provide a link to that skin? Powered by Kimsufi© ☢ ZHP on Facebook ☢ ZHP on Youtube ☢ Support us ☢
Luther123 Posted December 22, 2011 Author Posted December 22, 2011 Are you sure you've put it on client side? Check if the meta.xml is type="client". yeah.
Luther123 Posted December 22, 2011 Author Posted December 22, 2011 Could you provide a link to that skin? well ye,here it is http://www.gtainside.com/en/download.ph ... d&id=31437
Castillo Posted December 22, 2011 Posted December 22, 2011 Did you replace the DFF (the model) too? because I think you didn't. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Xeno Posted December 22, 2011 Posted December 22, 2011 function onResourceStart() skin1 = engineLoadTXD("veg.txd", 22) skin2 = engineLoadDFF("veg.dff", 22) engineImportTXD(skin1, 22) engineReplaceModel(skin2, 22) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart)
Castillo Posted December 22, 2011 Posted December 22, 2011 Wrong Xeno, when you're replacing something else than a vehicle the ID in engineLoadDFF must be 0. function onResourceStart() setTimer(function () engineImportTXD(engineLoadTXD("veg.txd", 22), 22) engineReplaceModel(engineLoadDFF("veg.dff", 0), 22) end, 1000, 1) end addEventHandler("onClientResourceStart", resourceRoot, onResourceStart) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Luther123 Posted December 23, 2011 Author Posted December 23, 2011 Wrong Xeno, when you're replacing something else than a vehicle the ID in engineLoadDFF must be 0. function onResourceStart() setTimer(function () engineImportTXD(engineLoadTXD("veg.txd", 22), 22) engineReplaceModel(engineLoadDFF("veg.dff", 0), 22) end, 1000, 1) end addEventHandler("onClientResourceStart", resourceRoot, onResourceStart) thnx,imma try now
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