Beckhamjr Posted July 13, 2017 Share Posted July 13, 2017 Is it possible to duplicate weapons in Mta Freeroam? I saw in brazilian forums some people doing this explaining in tutorias etc. how to duplicate an item with an invisible txd or something of the type , I'm wondering if there is any way to do this in Free Roam through some script , Forgive my English is not my first language. Thanks up Link to comment
Gordon_G Posted July 13, 2017 Share Posted July 13, 2017 Duplicate weapon ? Huh, you want to say create new weapons ? If it is that, yes it's possible. It'll need some script however. Look at these functions, it could help you : https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#Weapon_functions good luck. Link to comment
Beckhamjr Posted July 14, 2017 Author Share Posted July 14, 2017 5 hours ago, Gordon_G said: Duplicate weapon ? Huh, you want to say create new weapons ? If it is that, yes it's possible. It'll need some script however. Look at these functions, it could help you : https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#Weapon_functions good luck. yes duplicate Link to comment
Simple0x47 Posted July 14, 2017 Share Posted July 14, 2017 It's not really duplicating them the thing is making the original weapon invisible, replace any other object with a weapon model. Attach the replaced object to the hand bone with the specific rotation and there you have. engineLoadTXD() engineLoadDFF() engineImportTXD() engineReplaceModel() setElementAlpha() -- MAKE THE ORIGINAL GUN ELEMENT INVISIBLE exports.bone_attach:attachElementToBone() -- YOU WILL NEED THE RESOURCE bone_attach https://community.multitheftauto.com/index.php?p=resources&s=details&id=2540 Link to comment
pa3ck Posted July 14, 2017 Share Posted July 14, 2017 2 hours ago, Uknown. said: It's not really duplicating them the thing is making the original weapon invisible, replace any other object with a weapon model. Attach the replaced object to the hand bone with the specific rotation and there you have. engineLoadTXD() engineLoadDFF() engineImportTXD() engineReplaceModel() setElementAlpha() -- MAKE THE ORIGINAL GUN ELEMENT INVISIBLE exports.bone_attach:attachElementToBone() -- YOU WILL NEED THE RESOURCE bone_attach https://community.multitheftauto.com/index.php?p=resources&s=details&id=2540 How do you set the alpha of the original weapon? Link to comment
Simple0x47 Posted July 14, 2017 Share Posted July 14, 2017 Original Gun -> https://wiki.multitheftauto.com/wiki/CreateWeapon Link to comment
pa3ck Posted July 14, 2017 Share Posted July 14, 2017 That's not the original weapon, that will be the custom one. You can't hide the alpha of the actual weapon element that is in your hands, you'd need to use an invisible TXD. Link to comment
Simple0x47 Posted July 14, 2017 Share Posted July 14, 2017 11 minutes ago, pa3ck said: That's not the original weapon, that will be the custom one. You can't hide the alpha of the actual weapon element that is in your hands, you'd need to use an invisible TXD. With original weapon I've meant that the model is the original without any txd/dff replacement. 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