Closed jaylac2000 closed 1 year ago
I am having exactly the same issue! I don't think it is your side buddy.
I've tested with ox_core and ox_inventory and it seems to be working as expected.
Can I see your door settings?
Ahhh, that might be the problem? I am using ps-inventory?
https://imgur.com/a/r6HZ1Vr is this enough settings?
Well ps-inventory is just reskinned qb-inventory, but you wouldn't be getting the target option if the item you didn't have the item 🤔
I'm assuming there's no other settings on the door than the ones you showed...?
This is the function that checks whether the door can be opened or not. https://github.com/overextended/ox_doorlock/blob/a7dea12252c9ee53772979e2bb0a84b70acd7023/server/main.lua#L196-L234
Particularly this check for the lockpick item: https://github.com/overextended/ox_doorlock/blob/a7dea12252c9ee53772979e2bb0a84b70acd7023/server/main.lua#L212-L214
So I'd recommend leaving some prints and seeing what the DoesPlayerHaveItem
function returns, as it could be that it's not actually finding the item server-side in your inventory for some reason.
There is a few more settings, but I thought these were the only important ones. I added some print in, so that when lockpick was finsihed, it printed "lockpick found" and it printed this as intended.
Instead of printing "Lockpick found" do print(DoesPlayerHaveItem(player, Config.LockpickItems), Config.LockpickItems)
When I use that print, I am getting this error
[ script:ox_doorlock] nil table: 000002434C86A580
Right, so it seems that the item check on in your inventory returns that there are no lockpick items found, not sure if it's qb-inventory issue or just ps-inventory issue, though I wouldn't be surprised if it was the latter.
Ahhh, that might be the problem? I am using ps-inventory?
https://imgur.com/a/r6HZ1Vr is this enough settings?
I'm using ps-inventory also
Ahhh, that might be the problem? I am using ps-inventory? https://imgur.com/a/r6HZ1Vr is this enough settings?
I'm using ps-inventory also
Looks like a ps-inventory issue! That kinda sucks! but I can live with it, if there is no fix :)
Issue has been fixed! thank you TheLindat!
It wont let me lockpick door, am I doing something wrong?
QBCore. latest ox_lib, sql and doorlock
https://medal.tv/games/gta-v/clips/1sBGy6nXmm0-U-/d1337pT5ZABD?invite=cr-MSx6S3ksMTQ1Mzk3NDEs