#Just_Me Posted August 5, 2017 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 ?
#Just_Me Posted August 5, 2017 Author Posted August 5, 2017 i tried with photoshop but i got a white weapon in my hand, still visible
Discord Moderators Pirulax Posted August 5, 2017 Discord Moderators Posted August 5, 2017 (edited) setElementAlpha, since a weapon is an element. If i helped you, press like Edited August 5, 2017 by Pirulax
Discord Moderators Pirulax Posted August 5, 2017 Discord Moderators 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
NeXuS™ Posted August 5, 2017 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.
Zorgman Posted August 7, 2017 Posted August 7, 2017 @#Just_Me You solved this? I might be able to help you.
#Just_Me Posted August 8, 2017 Author Posted August 8, 2017 no actually i can't find any solution till now so yeah i would be happy if you did
Zorgman Posted August 8, 2017 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.
Zorgman Posted August 8, 2017 Posted August 8, 2017 okay, added the .dff file also. maybe they're interdependent. what code do you use to replace them?
#Just_Me Posted August 8, 2017 Author Posted August 8, 2017 i'm using engineLoadTXD and engineImportTXD
Zorgman Posted August 8, 2017 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.
#Just_Me Posted August 8, 2017 Author 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
Zorgman Posted August 8, 2017 Posted August 8, 2017 use the same dff and col to replace all weapons, instead of creating new textures for each one
#Just_Me Posted August 8, 2017 Author 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 ?
NeXuS™ Posted August 8, 2017 Posted August 8, 2017 You'll have to apply the custom textures for each individual player.
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