#Vehicle Lockpick

1 messages · Page 1 of 1 (latest)

boreal loom
#

Having an issue that doesnt show errors client or server side, when you approach a locked vehicle with a lockpick and use the item. Nothing happens

#
    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
nocturne holly
#

If none takes a look at this within tomorrow, I’ll check it out myself when I wake up

boreal loom
#

Much appreciated, this is the last thing i need to push my server live 🙂

boreal loom
#

@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

velvet lance
#

no youre all good

#

I'm gonna test and see if I come up with the same issues

boreal loom
#

awesome! Please update me if you do!

scarlet saddle
boreal loom
scarlet saddle
boreal loom
#

i did a fresh qbx_vehicle keys download 2 hours ago

scarlet saddle
#

Weird

#

Best way to see if it does something is to add a print

#

Exakly where tho i don't really know

scarlet saddle
boreal loom
#

negative

scarlet saddle
#

🤔

it's super weird anyhow

velvet lance
#

I just loaded in, fresh smallresources, vehiclekeys, core, etc

#

I can walk up to a car and use a lockpick without issue

boreal loom
#

well fuck

#

okay ill try a fresh core tomorrow

nocturne holly
#

Are you possibly using qs-housing? @boreal loom

#

Or any sort of house robberies that are not default by qbx?

boreal loom
#

to my knowledge no, but ill be checking when i get home from the gym in an hour

nocturne holly
#

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

boreal loom
#

we're using BCS_Housing

#

but thats set to advanced lockpick

nocturne holly
#

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

boreal loom
#

will test - sec

#

yeah even with the housing stopped it doesnt work. one of my dev must have changed something in core or smallresource

nocturne holly
#

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```
upper shale
#

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

boreal loom
#

appreciate it yall, when i get home from work ill try these fixes ❤️

nocturne holly
boreal loom
#

not yet, ive been called into work early both days sadly

polar pasture
#

I'm also having this problem rn

polar pasture
#

Weirdly for me, advanced is working fine, but lockpick is not

upper shale
#

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.

polar pasture
#

turned out to be cd_doorlock

boreal loom