Skip to content

Commit

Permalink
fix(client): check if current license point is showing textui
Browse files Browse the repository at this point in the history
If for whatever reason you decide to put your license points
really really really close together, it can get a bit weird.
  • Loading branch information
thelindat committed May 20, 2024
1 parent c758ce2 commit 3f298a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 3f298a1

Please sign in to comment.