From 12642b7e7bb5733497d6ae06d45795cec55876c8 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Thu, 22 May 2025 14:23:12 +0100 Subject: [PATCH] Temp fix consumables not being usable randomly I believe, the imported consumables from other scripts were fighting with each other in the `createUsableItem` event In theory, when syncing them (at least at the moment) the restaurant would try to make them usable, and also this script would try. Possibly cancelling each other out? This removes the `createUsableItem` event from the sync add item event --- server/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.lua b/server/server.lua index 97ad1eb..dddb26f 100644 --- a/server/server.lua +++ b/server/server.lua @@ -69,7 +69,7 @@ end RegisterNetEvent(getScript()..':server:syncAddItem', function(itemName, data) if not Consumables[itemName] then Consumables[itemName] = data - createUseableItem(itemName, function(source, item) TriggerClientEvent(getScript()..':Consume', source, itemName) end) + --createUseableItem(itemName, function(source, item) TriggerClientEvent(getScript()..':Consume', source, itemName) end) debugPrint("^5Debug^7: "..GetInvokingResource().." ^2is sending new ^3Item^7: '"..itemName.."'") if not syncScheduled then syncScheduled = true