mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
Update RemoveItem.md
This commit is contained in:
1 parent
649ebf51db
commit
d01cda425c
1 file changed
+7
-1
@@ -19,7 +19,13 @@ exports.ox_inventory:RemoveItem(inv, item, count, metadata, slot)
|
|||||||
- A specific slot to remove the item from. If the slot is invalid, the first available slot will be used instead.
|
- A specific slot to remove the item from. If the slot is invalid, the first available slot will be used instead.
|
||||||
- cb?: function(success: `boolean`, response?: `string`)
|
- cb?: function(success: `boolean`, response?: `string`)
|
||||||
|
|
||||||
Returns `success` as a boolean, stating whether the item was successfully removed.
|
Returns success: `boolean`, response: `string?`.
|
||||||
|
|
||||||
|
**Possible value of "response" on failure:**
|
||||||
|
|
||||||
|
- "invalid_item": the item doesn't exist
|
||||||
|
- "invalid_inventory": the inventory doesn't exist
|
||||||
|
- "not_enough_items": inventory did not contain enough of the given item
|
||||||
|
|
||||||
**Example:**
|
**Example:**
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user