botanist Posted December 23, 2009 Posted December 23, 2009 Hi, Now I'm thinking about, is it possible to replace a weapon? Until now, it won't work by me. My script: function onPlayerWeaponConnect() txd = engineLoadTXD ( "silenced.txd" ) engineImportTXD ( txd, 347 ) dff = engineLoadDFF ( "silenced.dff", 0 ) engineReplaceModel ( dff, 347 ) end addEventHandler("onClientResourceStart", getRootElement(), onPlayerWeaponConnect) I defined the models in meta.xml and I've placed them in the resource. But they doesn't replace. Is this because MTA haven't support for custom weapons or am I doing something wrong?
Gamesnert Posted December 23, 2009 Posted December 23, 2009 It does have support for changing textures, not models however.
botanist Posted December 23, 2009 Author Posted December 23, 2009 Ok, fuck << lawl badword replacer, but the texture isn't replacing too..
Gamesnert Posted December 23, 2009 Posted December 23, 2009 Make sure you (or anyone else, for that matter) don't have the weapon equipped. It simply can't be replaced if you have it in your hands.
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