mtasa-blue
mtasa-blue copied to clipboard
Add getWeaponName & getWeaponID for custom weapons
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.
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.