golanu21 Posted March 13, 2013 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
golanu21 Posted March 13, 2013 Author Posted March 13, 2013 i put this in a meta gamemode, and gamemode now don't work
golanu21 Posted March 13, 2013 Author 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
iPrestege Posted March 13, 2013 Posted March 13, 2013 i think the problem in the txd and dff file's .
golanu21 Posted March 13, 2013 Author 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
Castillo Posted March 13, 2013 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)
golanu21 Posted March 13, 2013 Author Posted March 13, 2013 oh it's ok now thanx very muth, mega mistake
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