mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-08-17 06:26:03 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user