Lockpick Export

  • For boosting we use an item called Transponding for opening the vehicles, if you have a lockpick script where people can open vehicles with other items (like lockpicks) you need to use this export to retrieve if the vehicle is from boosting and don't allow the player to use the normal lockpick

exports['av_boosting']:isBoosting() -- returns boolean
  • This is an example for qb-vehiclekeys:

-- qb-vehiclekeys/client/main.lua line 281
RegisterNetEvent('lockpicks:UseLockpick', function(isAdvanced)
    if exports['av_boosting']:isBoosting() then return end
    LockpickDoor(isAdvanced)
end)

Last updated