mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-09-02 11:18:58 +00:00
Change back to compound operators
This commit is contained in:
+1
-1
@@ -577,7 +577,7 @@ function QBCore.Player.GetTotalWeight(items)
|
||||
local weight = 0
|
||||
if not items then return 0 end
|
||||
for _, item in pairs(items) do
|
||||
weight = weight + item.weight * item.amount
|
||||
weight += item.weight * item.amount
|
||||
end
|
||||
return tonumber(weight)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user