Lockpick Scripts
RegisterNetEvent('lockpicks:UseLockpick', function(isAdvanced)
local vehicle = cache.vehicle
-- Add the export here to check if vehicle is from an active Boosting contract:
if exports['av_boosting']:isBoosting(vehicle) then return end
if vehicle then
if GetKeySearchEnabled() then
DisableKeySearch()
Hotwire(vehicle, isAdvanced)
EnableKeySearch()
else
Hotwire(vehicle, isAdvanced)
end
else
LockpickDoor(isAdvanced)
end
end)Last updated