Notify setup into ESX
This is a short and simple guide that explains how to set up our notifications in your es_extended
Notifys
function ESX.ShowNotification(message, notifyType, length)
return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
endfunction ESX.ShowNotification(message, notifyType, length)
local titel = "Notify"
if notifyType == nil then
notifyType = "info"
end
if notifyType == "info" then
titel = "Information"
elseif notifyType == "success" then
titel = "Success"
elseif notifyType == "error" then
titel = "Error"
end
exports["S-Notify"]:MakeInfoNotify(message, titel, notifyType, 5, nil, 1, 1)
endHelp Notify
Last updated