CanCarryAmount.md

Fill in the missing doc for the new export.
This commit is contained in:
tr1ckz authored and GitHub committed 2022-04-23 19:16:29 -04:00
1 parent 43f8625fa5
commit da2e8cf018
1 file changed
+16
@@ -0,0 +1,16 @@
Returns the amount a player can hold based on available weight.
```lua
---@param inv string | number
---@param item table | string
exports.ox_inventory:CanCarryAmount(inv, item)
```
Example:
```lua
-- Checks how much you can carry
amountToAdd = exports.ox_inventory:CanCarryAmount(inv, 'stone')
-- Adds the amount
exports.ox_inventory:AddItem(inv, 'stone', amountToAdd)
```