mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
377 B
377 B
Returns the amount a player can hold based on available weight.
---@param inv string | number
---@param item table | string
exports.ox_inventory:CanCarryAmount(inv, item)
Example:
-- Checks how much you can carry
amountToAdd = exports.ox_inventory:CanCarryAmount(inv, 'stone')
-- Adds the amount
exports.ox_inventory:AddItem(inv, 'stone', amountToAdd)