Hey guys, I have esx_lockpick plugin on my server, but one thing is not working, I set lock npc cars to true, it was working, almost all of npc cars was locked, but after some days it stopped working randomly.
I had the same issue, did you solve this?
Delete all blacklisted cars in config file.
Well that’s a shitty suggestion.
Just try to add all the cars that uniquely spawn that you don’t want civs to access to the blacklisted list.
Also, you have certain jobs that override the esx_lockpock, you can change those in your config. If you are police/ems (by default) you can access any locked car.
You need to add a “}” symbol in your config, which is opened by “{” at line 15.
Same issue here. Any fixes?
I’ve created custom over 40 custom usable items, but this one has been working from the original esx_lockpick and a week ago it just stopped working, cars don’t lock and the item is no longer usable when dragged.
This is what was working but is no longer working.
ESX.RegisterUsableItem(‘lockpick’, function(source)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
if Config.AllowMecano then
TriggerClientEvent('esx_lockpick:onUse', _source)
else
if xPlayer.job.name ~= 'mecano' then
TriggerClientEvent('esx_lockpick:onUse', _source)
end
end
end)
Script starts fine and I’ve tried https://github.com/XxFri3ndlyxX/esx_lockpick as well.
Just remove all blacklisted vehicles.
still not working