loljoshie / lj-inventory

GNU General Public License v3.0
92 stars 177 forks source link

[FIX] New core/inventory functions added. (CHECK BOTTOM OF THE README) #78

Closed Randolio closed 2 years ago

Randolio commented 2 years ago

Went through and manually replaced/added the new functions/exports with the recent qb-core changes.

I TESTED: TRUNKS/STASHES/GLOVEBOXES, DROPPING, CRAFTING, WEAPONS, ADDING/REMOVING/USING ITEMS.

ONE SMALL ISSUE IS WEAPON ATTACHMENTS NOT BEING SHOWN IN THE UI TO REMOVE THEM FROM THE GUN. (I'M NOT GOOD WITH HTML SO) Maybe someone can contribute to this part?

Pull Request Checklist:

vosscat commented 2 years ago

just tested on fresh installed qb base server. it gave errors on SetInventory/LoadInventory/SaveInventory exports

SKITTLE6969 commented 2 years ago

just tested on fresh installed qb base server. it gave errors on SetInventory/LoadInventory/SaveInventory exports

did you follow the read me?

Latest QB-CORE UPDATE (PLEASE READ)

MAKE SURE YOUR FOLLOWING RESOURCES ARE UP TO DATE:

QB-CORE QB-SMALLRESOURCES QB-WEAPONS

ONCE THAT IS DONE, YOU NEED TO REPLACE THE NEWLY ADDED EXPORTS IN QB-CORE.

FOR ME, ALL I HAD TO DO WAS MASS SEARCH MY RESOURCES FOLDER IN VISUAL STUDIO CODE LOOKING FOR 'qb-inventory' and replace it with 'lj-inventory'. SEE IMAGE LINK BELOW, FOLLOW IT EXACTLY.

(https://i.imgur.com/SyQwuoy.png)

I TESTED TRUNKS, STASHES, GLOVEBOXES, DROPPING, CRAFTING, WEAPONS, ADDING/REMOVING/USING ITEMS.

ONE SMALL ISSUE IS WEAPON ATTACHMENTS NOT BEING SHOWN IN THE UI TO REMOVE THEM FROM THE GUN. (I'M NOT GOOD WITH HTML SO)

vosscat commented 2 years ago

just tested on fresh installed qb base server. it gave errors on SetInventory/LoadInventory/SaveInventory exports

did you follow the read me?

Latest QB-CORE UPDATE (PLEASE READ)

MAKE SURE YOUR FOLLOWING RESOURCES ARE UP TO DATE:

QB-CORE QB-SMALLRESOURCES QB-WEAPONS

ONCE THAT IS DONE, YOU NEED TO REPLACE THE NEWLY ADDED EXPORTS IN QB-CORE.

FOR ME, ALL I HAD TO DO WAS MASS SEARCH MY RESOURCES FOLDER IN VISUAL STUDIO CODE LOOKING FOR 'qb-inventory' and replace it with 'lj-inventory'. SEE IMAGE LINK BELOW, FOLLOW IT EXACTLY.

(https://i.imgur.com/SyQwuoy.png)

I TESTED TRUNKS, STASHES, GLOVEBOXES, DROPPING, CRAFTING, WEAPONS, ADDING/REMOVING/USING ITEMS.

ONE SMALL ISSUE IS WEAPON ATTACHMENTS NOT BEING SHOWN IN THE UI TO REMOVE THEM FROM THE GUN. (I'M NOT GOOD WITH HTML SO)

Yes. That's exactly what I did. I'm on a fresh install qbcore server file and there's not even a single qb-inventory left in the code.

I will try to reinstall everything again to see if it's gonna work.

vosscat commented 2 years ago

Ok just did another reinstall and it worked this time. Something might be wrong last time. After all its a problem on my side. Thanks.

Randolio commented 2 years ago

Good to hear :)

SKITTLE6969 commented 2 years ago

Good to hear :)

there were couple of new inventory updates today as well try to add them and see if anything improves :D

UnitedLifeRP commented 2 years ago

Installed it 3 times on 3 fresh installs and still not working, Once you open it and try close it you get froze on a blury screen. Errors in console:

Error loading script client/main.lua in resource qb-inventory: @qb-inventory/client/main.lua:1034: No such export AddTargetModel in resource qb-target

NotReloads commented 2 years ago

Installed it 3 times on 3 fresh installs and still not working, Once you open it and try close it you get froze on a blury screen. Errors in console:

Error loading script client/main.lua in resource qb-inventory: @qb-inventory/client/main.lua:1034: No such export AddTargetModel in resource qb-target

Are you using qb-target? is your target system called qb-target or renamed? is it started? did you restart anything? Eitherway, first step i would do is check if its renamed in javascript, whilst it should be called lj-inventory, you have it as qb-inventory.

Randolio commented 2 years ago

Your error is in qb-inventory.. this is for lj-inventory..