mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
update inventory server docs
This commit is contained in:
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
|
||||
```
|
||||
```
|
||||
Reference in new issue
Block a user