mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-12-06 13:44:46 +00:00
Re-add dynamic string changer
Removed this by accident when people were getting notification issues Restored it to display the correct message when consuming
This commit is contained in:
1 parent
5bbd8a70e8
commit
868f322c8c
1 file changed
+10
@@ -135,6 +135,16 @@ RegisterNetEvent(getScript()..':Consume', function(itemName)
|
||||
end
|
||||
end
|
||||
|
||||
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.")
|
||||
|
||||
Reference in new issue
Block a user