update inventory server docs

This commit is contained in:
Luke committed 2022-11-17 11:59:10 +01:00
1 parent c013d3ff0c
commit 4dbd9dd4ab
21 files changed
+112 -91

No files matched your search

@@ -3,11 +3,11 @@ Sets durability onto the specified slot.
Can be used for repairing weapons.
```lua
-- inv: string or number
-- slot: number
-- durability: number
exports.ox_inventory:SetDurability(inv, slot, durability)
```
* inv: `string` or `number`
* slot: `number`
* durability: `number`
**Example:**
```lua
@@ -22,4 +22,4 @@ local weapon = ox_inventory:GetCurrentWeapon(source)
if weapon then
ox_inventory:SetDurability(source, weapon.slot, 100)
end
```
```