add itemCheck function
This commit is contained in:
1 parent
690db7ce55
commit
c1c8b8cb86
7 files changed
+21
-52
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user