Skip to content

Commit

Permalink
Merge pull request #155 from achrafvod/patch-1
Browse files Browse the repository at this point in the history
Inventory Update
  • Loading branch information
GhzGarage authored Nov 13, 2024
2 parents a4ddaa3 + 3fc8df3 commit 2765bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,11 @@ RegisterNetEvent('lockpicks:UseLockpick', function(isAdvanced)
local chanceToRemove = math.random(1,100) <= 17
if chanceToRemove then
TriggerServerEvent("qb-doorlock:server:removeLockpick", "advancedlockpick")
TriggerEvent('inventory:client:ItemBox', QBCore.Shared.Items["advancedlockpick"], "remove")
TriggerEvent('qb-inventory:client:ItemBox', QBCore.Shared.Items["advancedlockpick"], "remove")
end
else
TriggerServerEvent("qb-doorlock:server:removeLockpick", "lockpick")
TriggerEvent('inventory:client:ItemBox', QBCore.Shared.Items["lockpick"], "remove")
TriggerEvent('qb-inventory:client:ItemBox', QBCore.Shared.Items["lockpick"], "remove")
end
end
end)
Expand Down

0 comments on commit 2765bfe

Please sign in to comment.