Gta King Posted June 17, 2015 Posted June 17, 2015 i have tryed to change a weapon model with that code addEventHandler("onClientResourceStart",root, function () weapontxd = engineLoadTXD ( "cuntgun.txd" ) engineImportTXD (weapontxd,357) weapondff = engineLoadDFF ( "cuntgun.dff",357) engineReplaceModel (weapondff,357) end) i putted this in server side any help ?
Walid Posted June 17, 2015 Posted June 17, 2015 Try this addEventHandler("onClientResourceStart",resourceRoot, function () weapondff = engineLoadDFF ( ":O.dff",357) engineReplaceModel (weapondff,357) weapontxd = engineLoadTXD ( ":O.txd" ) engineImportTXD (weapontxd,357) end)
Walid Posted June 17, 2015 Posted June 17, 2015 try to replace the file names and make sure to edit your meta.xml file.
Gta King Posted June 17, 2015 Author Posted June 17, 2015 i already replaced it and edited my mta not working
Mr.unpredictable. Posted June 17, 2015 Posted June 17, 2015 i putted this in server side any help ? Engine functions are client side
ALw7sH Posted June 17, 2015 Posted June 17, 2015 if the dff file is in the same script folder you don't have to write ":" addEventHandler("onClientResourceStart",root, function () weapontxd = engineLoadTXD ( "O.txd" ) engineImportTXD (weapontxd,357) weapondff = engineLoadDFF ( "O.dff",357) engineReplaceModel (weapondff,357) end) also make sure it's client side
Gta King Posted June 17, 2015 Author Posted June 17, 2015 1- you fixed my problem 2-its not the same name 3-i putted it in a sever side 4- you fixed my problem man tnx
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