-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix QBCore Compatibility #113
Conversation
ive changed the function ConvertQuality(item) to
might wanna use that because this fixed that issue for me |
@lenzh I have added your suggestion as I did test the following:
Thanks for the suggestion |
It's worth noting someone pointed out that the export doesn't work server side with the following:
This is actually because if you call the server-side export directly, you also have to pass the source so the export can check the player's state bag:
|
so you paste the source twice? |
and for some reason when items are in stash at for example slot 2 and 4 it will be displayed in DB so it will place null in the json format for a empty slot, we might need to look into that aswell. idk it that was before like that |
@lenzh Sorry about that, lol, got the params mixed up there. P1: name ("stash", etc) Had to look at it again, the export takes params in a different order than the server's event Updated my original comment to reflect this |
@RobertGrubb aah oke now i get you |
also gotta check the commit ur behind with the items going missing in stashes, i never had that issue even with your pr but we might need to bug hunt that |
Please rebase before merging. |
Version 1.0.6
To understand the first bullet point, here is an example of an inventory add item call from latest QB Core (This was after the rename from qb-inventory to ps-inventory):
Notice the last parameter passed
SCRIPT ERROR: @ps-inventory/server/main.lua.2544: attempt to sub a 'number' with a 'string'
. The "reason" was being passed as the "created" timestamp which caused "created" to come through as an unexpected string.CreateShop
andOpenShop
exports toserver.lua
so shops can correctly be created and opened.RegisteredShops
table added at the top of the server file.Previews (Latest QBCore) - Inventory opens, shops are functioning, images are working fine, and decay is good.
NOTE: I'd appreciate it if we can get some eyes on this in terms of testing before merging just to confirm that all is well.