add itemCheck function

This commit is contained in:
Mustache Dom committed 2026-01-21 22:02:25 -07:00
1 parent 690db7ce55
commit c1c8b8cb86
7 files changed
+21 -52

No files matched your search

+8
View File
@@ -314,3 +314,11 @@ function progressbar(text, time, emote, cancel)
})
return success
end
function itemCheck(item)
if not Bridge.Inventory.HasItem(item) then
Bridge.Notify.SendNotify(Bridge.Language.Locale('Catches.itemMissings', Bridge.Inventory.GetItemInfo(item).label), 'error')
return false
end
return true
end