From 3f298a1dd5455e2f6c2477b9f6860dbf7aa0156d Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 20 May 2024 12:40:55 +1000 Subject: [PATCH] fix(client): check if current license point is showing textui If for whatever reason you decide to put your license points really really really close together, it can get a bit weird. --- client.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.lua b/client.lua index cacdf7104..2134695de 100644 --- a/client.lua +++ b/client.lua @@ -1254,7 +1254,7 @@ RegisterNetEvent('ox_inventory:setPlayerInventory', function(currentDrops, inven if point.isClosest and point.currentDistance < 1.2 then if not hasTextUi then - hasTextUi = true + hasTextUi = point lib.showTextUI(point.message, uiOptions) end @@ -1269,7 +1269,7 @@ RegisterNetEvent('ox_inventory:setPlayerInventory', function(currentDrops, inven end end, point.invId) end - elseif hasTextUi then + elseif hasTextUi == point then hasTextUi = false lib.hideTextUI() end