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

+1 -4
View File
@@ -20,10 +20,7 @@ for k, v in pairs (locations.DryOutMescaline) do
label = Bridge.Language.Locale('mesc.targetDry'),
icon = 'fa-solid fa-temperature-high',
action = function()
if not Bridge.Inventory.HasItem('cactusbulb') then
Bridge.Notify.SendNotify(Bridge.Language.Locale('Catches.itemNeeded', Bridge.Inventory.GetItemInfo('cactusbulb').label), 'error')
return
end
if not itemCheck('cactusbulb') then return end
if not progressbar(Bridge.Language.Locale('mescaline.dry')) then return end
TriggerServerEvent("md-drugs:server:drymescaline", k)
end,