From 799a56c02678a827a5b0f1c8bc25bc46f1eb4b25 Mon Sep 17 00:00:00 2001 From: justtos Date: Sun, 10 May 2020 12:42:15 +0300 Subject: [PATCH] Allow the callback for the item to have access... to basic info about itself --- server/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/functions.lua b/server/functions.lua index 1271d840..eca0a20d 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -244,7 +244,7 @@ ESX.RegisterUsableItem = function(item, cb) end ESX.UseItem = function(source, item) - ESX.UsableItemsCallbacks[item](source) + ESX.UsableItemsCallbacks[item](source, item) end ESX.GetItemLabel = function(item)