From d01cda425ca41d664b77d5e239f7c2cbf22d363c Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 3 Apr 2023 22:54:14 +1000 Subject: [PATCH] Update RemoveItem.md --- .../ox_inventory/Functions/Server/Inventory/RemoveItem.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/ox_inventory/Functions/Server/Inventory/RemoveItem.md b/docs/ox_inventory/Functions/Server/Inventory/RemoveItem.md index d2e65664..484c6a2e 100644 --- a/docs/ox_inventory/Functions/Server/Inventory/RemoveItem.md +++ b/docs/ox_inventory/Functions/Server/Inventory/RemoveItem.md @@ -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. - 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:**