Skip to content

getWeaponNameFromID() returns duplicate ID's for 10/11 and 12/13 #514

Open
@ArranTuna

Description

@ArranTuna

Describe the bug
When i use getWeaponNameFromID(10) or getWeaponNameFromID(11) these always return "Dildo".

getWeaponNameFromID(10) It's the short dildo.

getWeaponNameFromID(11) It's the long dildo.

If I use this function getWeaponIDFromName(getWeaponNameFromID(11)) this will return 10.

To Reproduce
Executing client-side command: getWeaponNameFromID(10)
Command results: Dildo [string]
Executing client-side command: getWeaponNameFromID(11)
Command results: Dildo [string]
Executing client-side command: getWeaponNameFromID(12)
Command results: Vibrator [string]
Executing client-side command: getWeaponNameFromID(13)
Command results: Vibrator [string]

Weapons having duplicate names is not good.

Expected behavior
Should return a different name.

Screenshots
Unstated.

MTA Client (please complete the following information):
Unstated.

MTA Server (please complete the following information):
Unstated.

Additional context
From https://bugs.mtasa.com/view.php?id=7968

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions