Skip to content
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

Evidence: GetWeapons #91

Open
ZenVee opened this issue Mar 20, 2024 · 0 comments
Open

Evidence: GetWeapons #91

ZenVee opened this issue Mar 20, 2024 · 0 comments
Labels
bug Something isn't working need repro This bug report needs confirmation

Comments

@ZenVee
Copy link

ZenVee commented Mar 20, 2024

Summary

Evidence does not work if you don't add addon weapons to the weapons.lua for qbx

Reproduction

  1. Add a addon weapon to ox_inventory
  2. Restart server
  3. Go on duty as cop
  4. Shoot the addon weapon a couple times and pull out your flashlight to collect evidence

Expected behavior

Should display evidence, and would hopefully use ox_inventory to get the weapon/ammo information. Would be tedious to have to add the weapons to both locations. Also ox_inventory weapons have different types of ammo then just "pistol" there is 9mm, 44, 45, etc.

Actual behavior

Does not display evidence and gives the following console error:
SCRIPT ERROR: @qbx_policejob/client/evidence.lua:258: attempt to index a nil value (field '?')

Additional context

No response

Current Version

1.0.0

Custom Resources

Not relevant

@ZenVee ZenVee added bug Something isn't working need repro This bug report needs confirmation labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need repro This bug report needs confirmation
Projects
Status: Todo
Development

No branches or pull requests

1 participant