#Vehicle Lockpick
1 messages · Page 1 of 1 (latest)
TriggerClientEvent('lockpicks:UseLockpick', source, false)
TriggerEvent('lockpicks:UseLockpick', source, false)
end)
exports.qbx_core:CreateUseableItem('advancedlockpick', function(source)
TriggerClientEvent('lockpicks:UseLockpick', source, true)
TriggerEvent('lockpicks:UseLockpick', source, true)
end)```
Standard lockpick function from qbx_smallresources
If none takes a look at this within tomorrow, I’ll check it out myself when I wake up
Much appreciated, this is the last thing i need to push my server live 🙂
@velvet lance sorry if im not allowed to tag, but i made this so i wouldnt flood the general-support chat incase you have an idea
awesome! Please update me if you do!
Are you sure the lockpick is a usableitem?
and you haven't touched the script that locks the cars at all?
yes, to my knowledge i havnt touched it at all
if it's not changed and if i remember correctly it should be qbx_vehiclekeys
i did a fresh qbx_vehicle keys download 2 hours ago
Weird
Best way to see if it does something is to add a print
Exakly where tho i don't really know
No erros when you ensure it either?
negative
🤔
it's super weird anyhow
I just loaded in, fresh smallresources, vehiclekeys, core, etc
I can walk up to a car and use a lockpick without issue
Are you possibly using qs-housing? @boreal loom
Or any sort of house robberies that are not default by qbx?
to my knowledge no, but ill be checking when i get home from the gym in an hour
Yeah, cause something might be overriding your lockpick event, and it might cause conflictions
Since it works fine for me as well, but it doesn't work if I use the qs-housing script for house robberies
Yea, try restarting the server without starting it I guess, just to see
Cause the lockpicking out of the box on a fresh qbox server works for sure
will test - sec
yeah even with the housing stopped it doesnt work. one of my dev must have changed something in core or smallresource
Possibly yeah, I'm not sure what the issue could be then tbh
just try using
print('Lockpick Debug')
after a function, or an event and see if something isn't working as it should
like this for example:
if not next(skillCheckConfig) then
print('No skill check configuration for this vehicle.')
return
end
if isLockpickingProcessLocked then
print('Lockpicking process is locked.')
return
end
isLockpickingProcessLocked = true```
You likely have a different script that registers and overwrites the lockpick item use function.
The other likely possibility is that lockpicking isn't enabled for the vehicle you are attempting -double check qbx_vehiclekeys config
appreciate it yall, when i get home from work ill try these fixes ❤️
Did you ever figure it out?
not yet, ive been called into work early both days sadly
I'm also having this problem rn
Weirdly for me, advanced is working fine, but lockpick is not
You almost certainly have another script that's overwriting the item use function
Search your codebase for createuseableitem and find the other script which is registering lockpick. It's probably one of the robberies, like house robbery
A easy way to verify this is restart qbx_smallresources after server startup. If the lockpick then works it's confirmed to be another script overwriting the item use function.
turned out to be cd_doorlock
i also use cd_doorlock. as soon as im home ill have to test that. Thankyou sir