Skip to content

Commit

Permalink
fix(client): prevent swapItems when usingItem
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Dec 30, 2023
1 parent 60cd478 commit 355c0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ local swapActive = false

---Synchronise and validate all item movement between the NUI and server.
RegisterNUICallback('swapItems', function(data, cb)
if swapActive or not invOpen or invBusy then return end
if swapActive or not invOpen or invBusy or usingItem then return cb(false) end

swapActive = true

Expand Down

0 comments on commit 355c0b8

Please sign in to comment.