You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Evidence does not work if you don't add addon weapons to the weapons.lua for qbx
Reproduction
Add a addon weapon to ox_inventory
Restart server
Go on duty as cop
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
The text was updated successfully, but these errors were encountered:
Summary
Evidence does not work if you don't add addon weapons to the weapons.lua for qbx
Reproduction
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
The text was updated successfully, but these errors were encountered: