Framework Integration
function ESX.ShowNotification(message, notifyType, length)
local NotifyType = "info"
if notifyType == 1 or notifyType == "success" then
NotifyType = "success"
elseif notifyType == 0 or notifyType == "error" then
NotifyType = "error"
end
local duration = length or 3000
if GetResourceState("g-notifications") ~= "missing" then
return exports["g-notifications"]:Notify({
title = "Groot Development",
description = message,
duration = duration,
type = NotifyType,
position = "top-right",
})
end
endLast updated