Qbox-project / qbx_core

http://qbox-project.github.io
Other
46 stars 109 forks source link

Replace QB items.lua and weapons.lua with Ox #451

Open Scullyy opened 2 months ago

Scullyy commented 2 months ago

Description

This replaces the QBCore items.lua and weapons.lua with the ox one, I also had to add a WeaponHashes table for reverse hashing since ox uses strings. I have open PR's on other resources to be compatible with this also.

Checklist

Scullyy commented 2 months ago

The items.lua will need to replace the one inside ox_inventory with the recipe. If not using the oldItems method this may need it's own bridge inside ox_inventory.

BerkieBb commented 2 months ago

I am not sure about this, I would rather not have an items.lua anymore in the future as they all get picked up by ox_inventory and placed in the data/items.lua anyway, otherwise they don't work

SKITTLE6969 commented 2 months ago

only issue that i see is when ox inventory try to convert the item lua in shared what happens then