golanu21 Posted March 13, 2013 Share Posted March 13, 2013 function replaceModel() txd = engineLoadTXD("infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) what is not ok here?, the name of txd and dff is infernus, and i want to change infernus model Link to comment
Castillo Posted March 13, 2013 Share Posted March 13, 2013 Post the meta.xml content. Link to comment
golanu21 Posted March 13, 2013 Author Share Posted March 13, 2013 i put this in a meta gamemode, and gamemode now don't work Link to comment
golanu21 Posted March 13, 2013 Author Share Posted March 13, 2013 "HazeMaze" version="0.1" type="gamemode" name="RPG" description="RPG"> "policeJob/jail.map" /> "policeJob/pvehs.map" /> "robberjob/files/cash.mp3"/> "pizzajob/pizzaveh.map"/> "loginpanel/logo.png"/> this is the full meta Link to comment
Castillo Posted March 13, 2013 Share Posted March 13, 2013 Does the script even load? what's the problem? Link to comment
iPrestege Posted March 13, 2013 Share Posted March 13, 2013 i think the problem in the txd and dff file's . Link to comment
golanu21 Posted March 13, 2013 Author Share Posted March 13, 2013 function replaceModel() txd = engineLoadTXD("infernus.txd") engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 5: bad dff pointer 3: bad txt pointer Link to comment
Castillo Posted March 13, 2013 Share Posted March 13, 2013 The problem is that you forgot to add the "replaces/" on the path. function replaceModel() txd = engineLoadTXD("replaces/infernus.txd") engineImportTXD(txd, 411) dff = engineLoadDFF("replaces/infernus.dff", 411 ) engineReplaceModel(dff, 411) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) Link to comment
golanu21 Posted March 13, 2013 Author Share Posted March 13, 2013 oh it's ok now thanx very muth, mega mistake 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