Skip to content

Commit

Permalink
fix(server/inventory): remove notification in CanCarryItem (#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamzky authored May 4, 2024
1 parent 98e8f51 commit 8df521a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/inventory/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,6 @@ function Inventory.CanCarryItem(inv, item, count, metadata)
local newWeight = inv.weight + (weight * count)

if newWeight > inv.maxWeight then
TriggerClientEvent('ox_lib:notify', inv.id, { type = 'error', description = locale('cannot_carry') })
return false
end

Expand Down

0 comments on commit 8df521a

Please sign in to comment.