-
-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with using melee and weapon in ox_inventory #1825
Comments
????????? This error is literally just the weapon either being forcibly removed by the game or failing to be equipped in the first place because they cannot be used, per the game. There's nothing deleting the items or explicitly disabling those items as part of the resource. Lines 529 to 535 in c0abafb
Lines 1388 to 1406 in c0abafb
|
Indeed, the weapon is not removed from the inventory, but it is holstered in the inventory. However, I don't understand why this happens with certain weapons (for example, WEAPON_KNIFE and WEAPON_SMG_MK2). Is there a solution?"
|
Are you using add on weapons? Ensure your correctly installed the weapons stream/data/meta files or you get this error. |
No I don't have any weapons addons. I tried with only ox_inventory and the problem is still there. |
Got the same error. Is there some fix? |
Describe the bug
I am experiencing issues with certain weapons in the ox_inventory. When I attempt to equip melee weapons (such as knives or bats) and certain weapons (like weapon_smg_mk2), I receive an error message in the console stating that these weapons cannot be used in the current context (WEAPON_XXX cannot be used in current context (default game behaviour). As a result, the weapons are automatically removed from the inventory, preventing their usage.
Framework
ESX
Resource version
2.42.3
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected to be able to equip and use the melee weapons and the weapon_smg_mk2 without any issues.
Screenshots
Currently, I do not have screenshots to provide.
Additional context
I have verified that other weapons (like pistols and rifles) work correctly without issues. The affected weapons are defined correctly in the database. If there are any configurations or settings that I need to check, please advise.
The text was updated successfully, but these errors were encountered: