Skip to content

Commit

Permalink
Fixed conflict with the names of some stashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
hakos47 authored Sep 19, 2024
1 parent 96ec7df commit 1536904
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:find('shop-') then return end
if inventory:find('otherplayer-') then
if inventory:match('shop%-') then return end
if inventory:match('otherplayer%-') then
local targetId = tonumber(inventory:match('otherplayer%-(.+)'))
Player(targetId).state.inv_busy = false
return
Expand Down

0 comments on commit 1536904

Please sign in to comment.