Pablosino Posted July 25, 2012 Share Posted July 25, 2012 Hi all i download new skin superman file skin1.ddf and skin2txd but in game is old skin what i have bad please help this is me xml and lua lua local skins = {{fileName="skin1", skinID=9} function load() for index, skin in pairs(skins) do engineImportTXD(engineLoadTXD ( skin.fileName ..".txd" ), tonumber(skin.skinID)) engineReplaceModel(engineLoadDFF ( skin.fileName ..".dff", 0 ), tonumber(skin.skinID)) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.3") then setTimer ( load, 1000, 1) end end) xml Please help thx.. Link to comment
Castillo Posted July 25, 2012 Share Posted July 25, 2012 local skins = {{fileName="skin1", skinID=9}} function load() for index, skin in pairs(skins) do engineImportTXD(engineLoadTXD ( skin.fileName ..".txd" ), tonumber(skin.skinID)) engineReplaceModel(engineLoadDFF ( skin.fileName ..".dff", 0 ), tonumber(skin.skinID)) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.1.1") then setTimer ( load, 1000, 1) end end) You had missing '}' at this line: local skins = {{fileName="skin1", skinID=9}} Link to comment
Pablosino Posted July 25, 2012 Author Share Posted July 25, 2012 now eror ERROR: Couldn't find file skin1.txd for resource spiderman Loading of resource 'spiderman' failed ??? Link to comment
Castillo Posted July 25, 2012 Share Posted July 25, 2012 That means you got missing "skin1.txd" file. Link to comment
Imposter Posted July 25, 2012 Share Posted July 25, 2012 That means you got missing "skin1.txd" file. or he didnt add it into the meta. Link to comment
Castillo Posted July 25, 2012 Share Posted July 25, 2012 He has it on meta, not the file is not on the resource. Link to comment
Imposter Posted July 25, 2012 Share Posted July 25, 2012 He has it on meta, not the file is not on the resource. oh lool, didnt see that... Link to comment
Pablosino Posted July 25, 2012 Author Share Posted July 25, 2012 YES now error fixed but still don't work still is in game old skin 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