Update functions.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-06-30 17:35:26 -07:00
1 parent 22b054b681
commit c7192ff2e2
1 file changed
+4
+4
View File
@@ -83,9 +83,13 @@ end
function ItemCheck(item)
local success
if GetResourceState('ox_inventory') == 'started' then
if exports.ox_inventory:GetItemCount(item) >= 1 then return true else Notify('You Need ' .. QBCore.Shared.Items[item].label .. " !", 'error') end
else
if QBCore.Shared.Items[item] == nil then print("There Is No " .. item .. " In Your QB Items.lua") return end
if QBCore.Functions.HasItem(item) then success = item return success else Notify('You Need ' .. QBCore.Shared.Items[item].label .. " !", 'error') end
end
end
function Email(sender, subject, message)
if Config.Phone == 'yflip' then