From 868f322c8c409be3910c52ec061947f54b89581e Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Wed, 14 May 2025 15:54:53 +0100 Subject: [PATCH] Re-add dynamic string changer Removed this by accident when people were getting notification issues Restored it to display the correct message when consuming --- client/client.lua | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/client/client.lua b/client/client.lua index 647595d..efaa5e3 100644 --- a/client/client.lua +++ b/client/client.lua @@ -133,10 +133,20 @@ RegisterNetEvent(getScript()..':Consume', function(itemName) bone2 = GetPedBoneIndex(Player, emote.AnimationOptions.SecondPropBone) P7, P8, P9, P10, P11, P12 = table.unpack(emote.AnimationOptions.SecondPropPlacement) end - end + end - if consuming then - cancelled = true + if type == "drink" or type == "alcohol" then + string = "Drinking " + elseif type == "food" then + string = "Eating " + elseif type == "smoke" then + string = "Smoking " + elseif type == "pack" then + string = "Opening " + end + + if consuming then + cancelled = true debugPrint("^5Debug^7: ^3Consume^7: ^2Event already started^7, ^1Cancelling^7.") tempLockInv(false) if Config.UseProgbar then