mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Add getWeaponName & getWeaponID for custom weapons

Open bum8hj opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

AFAIK, there is currently no way of getting the name or ID of a custom weapon unless you store the name in a variable upon creating the weapon.

Describe the solution you'd like

Add 2 new client-side functions getWeaponName(weapon) and getWeaponID(weapon)

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • [X] I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

bum8hj avatar Jan 16 '23 06:01 bum8hj

How do you want to get the name of the custom weapon? You cannot specifically create custom weapons, only with your own scripts. In my opinion, this issue makes no sense.

Nico8340 avatar Feb 26 '24 21:02 Nico8340