Update functions.lua

This commit is contained in:
Benzo
2022-04-26 17:34:22 +02:00
committed by GitHub
parent 8aceb0493d
commit fa43d3c59d
+7 -1
View File
@@ -78,7 +78,13 @@ function ESX.SetPlayerData(key, val)
end
function ESX.ShowNotification(message, type, length)
exports["esx_notify"]:Notify(type, length, message)
if Config.NativeNotify then
BeginTextCommandThefeedPost('STRING')
AddTextComponentSubstringPlayerName(msg)
EndTextCommandThefeedPostTicker(0,1)
else
exports["esx_notify"]:Notify(type, length, message)
end
end
function ESX.ShowAdvancedNotification(sender, subject, msg, textureDict, iconType, flash, saveToBrief, hudColorIndex)