Installation
Installation of cxa-hudv2
Last updated
Installation of cxa-hudv2
Last updated
function QBCore.Functions.Notify(text, texttype, length, icon)
local textTypeTitle = "Notify"
if not icon then
icon = "fa-solid fa-check"
end
if not length then
length = 5000
end
if texttype == "error" then
textTypeTitle = "Error"
elseif texttype == "warning" then
textTypeTitle = "Warning"
elseif texttype == "success" then
textTypeTitle = "Success"
elseif texttype == "primary" then
textTypeTitle = "Notify"
else
textTypeTitle = "Notify"
end
TriggerEvent("cxa-hud:sendNotification", textTypeTitle, text, icon, length, texttype)
end