Jump to content

How to get weapon element?


Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...