From 1536904eed7d6f00dcf6251d2b2c154c6d5addb1 Mon Sep 17 00:00:00 2001 From: Hakos <76844995+hakos47@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:53:11 +0200 Subject: [PATCH 1/2] Fixed conflict with the names of some stashes. --- server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.lua b/server/main.lua index 3bfa405f1..23af506e1 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: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 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 2/2] 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 23af506e1..cccb40da4 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