Framework Integration
Before modifying any core files, it's recommended that you have at least beginner-level coding experience. Improper edits may cause unexpected issues in your framework.
File: es_extended/client/functions.lua
Replace the default QBox notification with:
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
end
Last updated