karolek110199 Posted May 19, 2015 Share Posted May 19, 2015 Hello! I have a question. How to get weapon element? getPedWeapon - returns only weapon ID and I didn't find getWeaponByID. Link to comment
karolek110199 Posted May 19, 2015 Author Share Posted May 19, 2015 This return name of weapon, but don't weapon element. I try to set aim position (setWeaponTarget)... Link to comment
Mann56 Posted May 19, 2015 Share Posted May 19, 2015 Hello!How to get weapon element? This return name of weapon, but don't weapon element.I try to set aim position (setWeaponTarget)... Dude i cannot get you what do you want ? If you want the aim bodypart use the optional argument if not please specify your question Link to comment
karolek110199 Posted May 20, 2015 Author Share Posted May 20, 2015 I need to get weapon's element to use function setWeaponTaget. Link to comment
Addlibs Posted May 20, 2015 Share Posted May 20, 2015 getPedWeapon This gives the weapon ID (integer), not the weapon element.I need to get weapon's element to use function setWeaponTaget. Ped/Player weapons are not elements within MTA, so you cannot get their element userdata. The function you mentioned is for use with createWeapon weapons This function sets the target of a custom weapon. 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