Change es_extended notfy

i tried to change the esx notification in function.lua to my new notification but always didnt work can anyone help me?

old one :
function ESX.ShowNotification(message, notifyType, length)
if GetResourceState(“esx_notify”) ~= “missing” then
return exports[“esx_notify”]:Notify(notifyType, length, message)
end

my new notify trigger : nightlife_hud:notify type, title, text, time(optional)

i sadly do not know how to implement it due to still learning ive tried a couple times and cked it up pretty bad thats why im comming herre

notify types (new) :
0 = error

1 = success

2 = warning

1 Like