ESX
1
Go to es_extended/client/functions.lua
function ESX.ShowNotification(message, notifyType, length)
return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
endif GetResourceState("jc-notify") ~= "missing" then
TriggerEvent('jc-notify:client:notify', message, notifyType, length)
return true
endfunction ESX.ShowNotification(message, notifyType, length)
if GetResourceState("jc-notify") ~= "missing" then
TriggerEvent('jc-notify:client:notify', message, notifyType, length)
return true
end
return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
end
Last updated