#Just_Me Posted August 5, 2017 Share Posted August 5, 2017 hello guys, i'm trying to make an invisible weapons i know that i should use DFF + TXD i tried to remove the weapon from DFF and reuploaded the weapon to the server all i got is a Crash is there any mod or something that can do this ? Link to comment
Mr.Loki Posted August 5, 2017 Share Posted August 5, 2017 Make the texture transparent Link to comment
#Just_Me Posted August 5, 2017 Author Share Posted August 5, 2017 i tried with photoshop but i got a white weapon in my hand, still visible Link to comment
Discord Moderators Pirulax Posted August 5, 2017 Discord Moderators Share Posted August 5, 2017 (edited) setElementAlpha, since a weapon is an element. If i helped you, press like Edited August 5, 2017 by Pirulax Link to comment
NeXuS™ Posted August 5, 2017 Share Posted August 5, 2017 No, the weapon is not an element @Pirulax. Link to comment
Discord Moderators Pirulax Posted August 5, 2017 Discord Moderators Share Posted August 5, 2017 (edited) are you sure about that? https://wiki.multitheftauto.com/wiki/Element You are right in some way, bcuz if you give the weapon to the player, then its only a texture. Edited August 5, 2017 by Pirulax Link to comment
NeXuS™ Posted August 5, 2017 Share Posted August 5, 2017 I know a lot about MTA @Pirulax. So I'm sure that the given weapon is not an element, just a texture, as you modified your comment in your edit. Link to comment
Zorgman Posted August 7, 2017 Share Posted August 7, 2017 @#Just_Me You solved this? I might be able to help you. Link to comment
#Just_Me Posted August 8, 2017 Author Share Posted August 8, 2017 no actually i can't find any solution till now so yeah i would be happy if you did Link to comment
Zorgman Posted August 8, 2017 Share Posted August 8, 2017 Here's the invisible texture I use, available to download for 1 month. The size is huge for what it is actually, if anybody has a more compact version, please upload. Link to comment
#Just_Me Posted August 8, 2017 Author Share Posted August 8, 2017 that actually didn't work Link to comment
Zorgman Posted August 8, 2017 Share Posted August 8, 2017 okay, added the .dff file also. maybe they're interdependent. what code do you use to replace them? Link to comment
#Just_Me Posted August 8, 2017 Author Share Posted August 8, 2017 i'm using engineLoadTXD and engineImportTXD Link to comment
Zorgman Posted August 8, 2017 Share Posted August 8, 2017 local skin = engineLoadTXD("chnsaw.txd") engineImportTXD(skin, 341) local skin = engineLoadDFF("chnsaw.dff", 341) engineReplaceModel(skin, 341) this should work, provided that you place both files in the resource root folder and add them to the resource folder. works for me, at least. Link to comment
#Just_Me Posted August 8, 2017 Author Share Posted August 8, 2017 ok let's say that it works that's not for all weapons cause i took the image inside the txd and used it for another weapon but it still the same weapon Link to comment
Zorgman Posted August 8, 2017 Share Posted August 8, 2017 use the same dff and col to replace all weapons, instead of creating new textures for each one Link to comment
#Just_Me Posted August 8, 2017 Author Share Posted August 8, 2017 okey, is it possible to set the property of the weapon on the local player only ? not for all weapons with same model ? like for making custom weapon, if i used 2 Deagles with different textures how to make the first texture with private property ? and the second one also ? Link to comment
NeXuS™ Posted August 8, 2017 Share Posted August 8, 2017 You'll have to apply the custom textures for each individual player. 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