Global Notifications Integration
🟢 ESX Integration
function ESX.ShowNotification(message, notifyType, length, title, position)
if GetResourceState('ak47_hud') == 'started' then
return exports['ak47_hud']:Notify(message, notifyType, length, title)
end
return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType or "info", length or 5000, message, title, position)
end
function ESX.ShowAdvancedNotification(sender, subject, msg, textureDict, iconType, flash, saveToBrief, hudColorIndex)
if GetResourceState('ak47_hud') == 'started' then
return exports['ak47_hud']:Notify(msg, 'info', 7000, sender)
end
AddTextEntry("esxAdvancedNotification", msg)
BeginTextCommandThefeedPost("esxAdvancedNotification")
if hudColorIndex then
ThefeedSetNextPostBackgroundColor(hudColorIndex)
end
EndTextCommandThefeedPostMessagetext(textureDict, textureDict, false, iconType, sender, subject)
EndTextCommandThefeedPostTicker(flash, saveToBrief == nil or saveToBrief)
end🔵 QBCore Integration
🟣 ox_lib Integration
Last updated