Luther123 Posted December 22, 2011 Share 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) Link to comment
Charlie_Jefferson Posted December 22, 2011 Share Posted December 22, 2011 Any errors? Link to comment
myonlake Posted December 22, 2011 Share Posted December 22, 2011 You need to add it in the meta.xml aswell. Link to comment
Luther123 Posted December 22, 2011 Author Share Posted December 22, 2011 Any errors? no,there are no errors,its just like when i come ingame nothing happends to the skin. Link to comment
Luther123 Posted December 22, 2011 Author Share Posted December 22, 2011 You need to add it in the meta.xml aswell. i already did that.. Link to comment
Slothman Posted December 22, 2011 Share 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. Link to comment
Xeno Posted December 22, 2011 Share Posted December 22, 2011 If what Slothman said doesnt work, it may be an error with the actual skin. Link to comment
myonlake Posted December 22, 2011 Share Posted December 22, 2011 Are you sure you've put it on client side? Check if the meta.xml is type="client". Link to comment
Buffalo Posted December 22, 2011 Share Posted December 22, 2011 Could you provide a link to that skin? Link to comment
Luther123 Posted December 22, 2011 Author Share Posted December 22, 2011 Are you sure you've put it on client side? Check if the meta.xml is type="client". yeah. Link to comment
Luther123 Posted December 22, 2011 Author Share 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 Link to comment
Castillo Posted December 22, 2011 Share Posted December 22, 2011 Did you replace the DFF (the model) too? because I think you didn't. Link to comment
Xeno Posted December 22, 2011 Share 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) Link to comment
Castillo Posted December 22, 2011 Share 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) Link to comment
Luther123 Posted December 23, 2011 Author Share 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 Link to comment
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