Scripts/resources/[custom_script]/mb-chicken/shared/shared.lua

26 lines
951 B
Lua
Raw Normal View History

2024-12-29 19:48:41 +00:00
function MBNotify(title, message, type, source)
if Config.Notify == "okokNotify" then
if not source then
exports['okokNotify']:Alert(title, message, 10000, type)
else
TriggerClientEvent('okokNotify:Alert', source, title, message, 10000, type)
end
elseif Config.Notify == "qb-core" then
if type == "info" then
type = "primary"
end
if not source then
TriggerEvent("QBCore:Notify", message, type)
else
TriggerClientEvent("QBCore:Notify", source, message, type)
end
elseif Config.Notify == "roda-notify" then
if not source then
exports['Roda_Notifications']:showNotify(message, type, 10000)
else
TriggerClientEvent('Roda_Notifications:showNotify', source, message, type, 10000)
end
else
print("mb-gym: Your type of notify choice is not supported")
end
end