From f01703ac9071dbbeb1b121fc89027efb86228eba Mon Sep 17 00:00:00 2001 From: Hakos <76844995+hakos47@users.noreply.github.com> Date: Fri, 20 Sep 2024 17:11:42 +0200 Subject: [PATCH] cahge: match to find --- server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.lua b/server/main.lua index 23af506e..cccb40da 100644 --- a/server/main.lua +++ b/server/main.lua @@ -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