Skip to content

Commit

Permalink
cahge: match to find
Browse files Browse the repository at this point in the history
  • Loading branch information
hakos47 authored Sep 20, 2024
1 parent 1536904 commit f01703a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ RegisterNetEvent('qb-inventory:server:closeInventory', function(inventory)
local QBPlayer = QBCore.Functions.GetPlayer(src)
if not QBPlayer then return end
Player(source).state.inv_busy = false
if inventory:match('shop%-') then return end
if inventory:match('otherplayer%-') then
if inventory:find('shop%-') then return end
if inventory:find('otherplayer%-') then
local targetId = tonumber(inventory:match('otherplayer%-(.+)'))
Player(targetId).state.inv_busy = false
return
Expand Down

0 comments on commit f01703a

Please sign in to comment.