From 9e8dcc39f9a41897568d807b692741c55452259b Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Mon, 5 May 2025 19:48:11 +0100 Subject: [PATCH] Remove notify types I was hoping this wouldn't affect notification systems but it did I left in code for a automated notification type, this was used on a server I worked on, forgot it was there and had a couple reports of it breaking qb-core nui --- client/client.lua | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/client/client.lua b/client/client.lua index 2daa4f5..49ffc6c 100644 --- a/client/client.lua +++ b/client/client.lua @@ -135,21 +135,7 @@ RegisterNetEvent(getScript()..':Consume', function(itemName) P7, P8, P9, P10, P11, P12 = table.unpack(emote.AnimationOptions.SecondPropPlacement) end end - if type == "drink" or type == "alcohol" then - string = "Drinking " - notifType = "drinking" - elseif type == "food" then - string = "Eating " - notifType = "eating" - elseif type == "smoke" then - string = "Smoking " - notifType = "smoking" - elseif type == "pack" then - string = "Opening " - notifType = "package" - else string = "Using " - notifType = "using" - end + if consuming then cancelled = true debugPrint("^5Debug^7: ^3Consume^7: ^2Event already started^7, ^1Cancelling^7.") @@ -197,7 +183,7 @@ RegisterNetEvent(getScript()..':Consume', function(itemName) end end) else - triggerNotify(nil, string..Items[itemName].label.."..", notifType) + triggerNotify(nil, string..Items[itemName].label.."..", "success") end consuming = true