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

2 Likes
function ESX.ShowNotification(message, type, length)
    TriggerEvent('nightlife_hud:notify', type, 'Notification', message)
end

Within your client sided script you can work this in, same counts as server sided only thing you have to change is TriggerClientEvent and change it to source!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.