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
@@ -6,10 +6,7 @@ for k, v in pairs (locations.WeedDry) do
icon = 'fa-solid fa-cannabis',
label = Bridge.Language.Locale('weed.targetDry'),
action = function()
if not Bridge.Inventory.HasItem( "wetcannabis") then
Bridge.Notify.SendNotify(Bridge.Language.Locale('weed.noDry'), "error")
return
end
if not itemCheck("wetcannabis") then return end
if drying then return end
local loc = GetEntityCoords(PlayerPedId())
local weedplant = CreateObject("bkr_prop_weed_drying_01a", loc.x, loc.y+.2, loc.z, true, false)