Replace core notifications
Replacing core notification with vms_notify
Replace ESX Notifications
Open @es_extended/client/functions.lua.
Search for
function ESX.ShowNotification
.Replace the function with this one below.
function ESX.ShowNotification(message, type, length, custom_icon)
local message = message
local colors = type and type == "main" and "#19a3ff" or type == "success" and "#2bff72" or type == "error" and "#ff2b2b" or "#YOUR_DEFAULT_COLOR"
local icon = custom_icon or "YOUR_DEFAULT_FONT_AWESOME"
exports['vms_notify']:Notification("YOUR_DEFAULT_TITLE", message, length or 4500, colors, icon)
end
Last updated
Was this helpful?