Jump to content

Model replacing


botanist

Recommended Posts

Posted

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?

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...