2026-04-14 17:41:39 +02:00

16 lines
329 B
Lua

-- Custom useful functions
function AddPlayerItemToFit(player, item, amount, meta)
local gotItems = false
while not gotItems and amount > 0 do
gotItems = AddPlayerItem(player, item, amount, meta)
if not gotItems then
amount = amount - 1
end
end
return gotItems, amount
end