ReckLess Posted April 14, 2012 Share Posted April 14, 2012 Hi! I have a problem with this script: infernus.lua function replaceModel() txd = engineLoadTXD("data/infernus.txd") engineImportTXD(txd, 411) dff = engineLoadDFF("data/infernus.dff", 411) engineReplaceModel(dff, 411) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler("reloadcar", replaceModel) meta.xml I did 'refreshall' but then in game nothing changes. Link to comment
huseyin56 Posted April 14, 2012 Share Posted April 14, 2012 function replaceModel() txd = engineLoadTXD("data/infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("data/infernus.dff", 411 ) engineReplaceModel(dff, 411) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel ) Link to comment
drk Posted April 14, 2012 Share Posted April 14, 2012 infernus.lua function replaceModel() txd = engineLoadTXD("data/infernus.txd") engineImportTXD(txd, 411) dff = engineLoadDFF("data/infernus.dff", 411) engineReplaceModel(dff, 411) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler("reloadcar", replaceModel) meta.xml Link to comment
ReckLess Posted April 14, 2012 Author Share Posted April 14, 2012 I still don't understand, what's wrong? Link to comment
drk Posted April 15, 2012 Share Posted April 15, 2012 Your meta.xml. file node don't have any type. Link to comment
ReckLess Posted April 18, 2012 Author Share Posted April 18, 2012 type='script' You mad? Link to comment
Michael# Posted April 18, 2012 Share Posted April 18, 2012 You mad, yes. Correct, file node don't have any type. Link to comment
ReckLess Posted June 13, 2012 Author Share Posted June 13, 2012 #push Hey guys, I still have the same problem as last time. Meta.xml: "Name" name="Infernus Mod" version="1.0" type="script"/> infernus.lua: function replaceModel() txd = engineLoadTXD("infernus.txd", 411) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411) engineReplaceModel(dff, 411) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler("reloadcar", replaceModel ) I can't fix it, can someone help me? Link to comment
myonlake Posted June 13, 2012 Share Posted June 13, 2012 <meta> <info author="Name" name="Infernus Mod" version="1.0" type="script" /> <script src="infernus.lua" type="client" /> <file src="infernus.txd" /> <file src="infernus.dff" /> </meta> addEventHandler("onClientResourceStart", resourceRoot, function() txd = engineLoadTXD("infernus.txd", 411) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411) engineReplaceModel(dff, 411) end ) Make sure the resource is running. Link to comment
ReckLess Posted June 15, 2012 Author Share Posted June 15, 2012 Still not working.. I always have these problems with mods, that, they don't want to work! (I add them on resource folder) Link to comment
ReckLess Posted June 17, 2012 Author Share Posted June 17, 2012 #push Script fixed by myself. 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