Skip to content

Commit

Permalink
fix(client): early-return during 'giveItem' if using an item
Browse files Browse the repository at this point in the history
Should resolve #1747.
  • Loading branch information
thelindat committed Jul 12, 2024
1 parent 2b5a827 commit 813d483
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1658,6 +1658,8 @@ end
RegisterNUICallback('giveItem', function(data, cb)
cb(1)

if usingItem then return end

if client.giveplayerlist then
local nearbyPlayers = lib.getNearbyPlayers(GetEntityCoords(playerPed), 3.0)
local nearbyCount = #nearbyPlayers
Expand Down

0 comments on commit 813d483

Please sign in to comment.