AHK1221 Posted December 20, 2015 Share Posted December 20, 2015 Hi guys. So I'm working on this mod that lets you save weapons. So far, I'm going pretty well, but now I've stuck into a wall. I want the weapons component's hashes so I can apply them later, but ScriptHookVDotNet's own system doesn't have this feature neither there is a native for it. So is there a way to save there hashes into a variable? Thanks in advance. Link to comment Share on other sites More sharing options...
CamxxCore Posted December 20, 2015 Share Posted December 20, 2015 http://gtaforums.com/topic/826576-walk-me-through-gun-components-and-addons-if-you-would/?p=1068106964 At the bottom of my post there's an enumeration with quite a few of the component hashes Link to comment Share on other sites More sharing options...
AHK1221 Posted December 21, 2015 Author Share Posted December 21, 2015 http://gtaforums.com/topic/826576-walk-me-through-gun-components-and-addons-if-you-would/?p=1068106964 At the bottom of my post there's an enumeration with quite a few of the component hashes Thank you CamxxCore, but I wanted to know if there is a way to get component's hashes from a weapon. I found a long way that requires you to check if that weapon has a component and if it does, store it in a variable and apply it later, but that's very time consuming. Is there is there a better way? Link to comment Share on other sites More sharing options...
milkjunk87 Posted December 22, 2015 Share Posted December 22, 2015 (edited) I'm not familiar but would these help? https://www.gta5-mods.com/tools/hashtool https://www.gta5-mods.com/tools/aimed-entity-hash-receiver http://www.se7ensins.com/forums/threads/weapon-and-explosion-hashes-list.1045035/ Hash GET_HASH_NAME_FOR_COMPONENT(Entity entity, int componentId, int drawableVariant, int textureVariant)// 0x0368B3A838070348 0xC8A4BF12 Have you tried using OpenIV? do you know where you can find the file you want? i can copy paste the code for you Edited December 23, 2015 by milkjunk87 Link to comment Share on other sites More sharing options...
AHK1221 Posted December 23, 2015 Author Share Posted December 23, 2015 I'm not familiar but would these help? https://www.gta5-mods.com/tools/hashtool https://www.gta5-mods.com/tools/aimed-entity-hash-receiver http://www.se7ensins.com/forums/threads/weapon-and-explosion-hashes-list.1045035/ Hash GET_HASH_NAME_FOR_COMPONENT(Entity entity, int componentId, int drawableVariant, int textureVariant) // 0x0368B3A838070348 0xC8A4BF12 Have you tried using OpenIV? do you know where you can find the file you want? i can copy paste the code for you Thanks for trying to help, but I wanted to know if there is a way to get the attachments of a weapon through code, I don't want lists. Link to comment Share on other sites More sharing options...
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