DNS Posted March 10, 2012 Share Posted March 10, 2012 (edited) Hi guys, I have made a script which is supposed to replace the original sa DFFs/TXDs(skin), but it doesn't work. I don't get any errors, but, the original ped skin isn't replaced too! Do you see anything wrong here ? ------- --Skins ------- function skins() --HS skin txd = engineLoadTXD("skins/fbi.txd", true) engineImportTXD(txd, 286) dff = engineLoadDFF("skins/fbi.dff", 286) engineImportDFF(dff, 286) --DanWesson skin txd = engineLoadTXD("skins/vmaff1.txd", true) engineImportTXD(txd, 124) dff = engineLoadDFF("skins/vmaff1.dff", 124) engineReplaceModel(dff, 124) end addEventHandler("onClientResourceStart", resourceRoot, skins) <script src="replacer.lua" type="client" /> Thank you in advance! Edited March 10, 2012 by Guest Link to comment
drk Posted March 10, 2012 Share Posted March 10, 2012 (edited) ------- --Skins ------- function skins() --HS skin txd = engineLoadTXD("skins/fbi.txd", 286) engineImportTXD(txd, 286) dff = engineLoadDFF("skins/fbi.dff", 286) engineReplaceModel(dff, 286) --DanWesson skin txd = engineLoadTXD("skins/vmaff1.txd", 124) engineImportTXD(txd, 124) dff = engineLoadDFF("skins/vmaff1.dff", 124) engineReplaceModel(dff, 124) end addEventHandler("onClientResourceStart", resourceRoot, skins) Updated. Edited March 10, 2012 by Guest Link to comment
DNS Posted March 10, 2012 Author Share Posted March 10, 2012 Still didn't work! Any other ideas? Link to comment
drk Posted March 10, 2012 Share Posted March 10, 2012 Problem found: You used engineImportDFF. Copy my code again. Link to comment
DNS Posted March 10, 2012 Author Share Posted March 10, 2012 Really silly mistake of me Anyways, thank you for the help, that fixed it. Link to comment
X-SHADOW Posted March 10, 2012 Share Posted March 10, 2012 i cant help forum syntax error always 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