From fa43d3c59d5d979ce95c98d20f2307656408cedf Mon Sep 17 00:00:00 2001 From: Benzo <102178921+Benzo00@users.noreply.github.com> Date: Tue, 26 Apr 2022 17:34:22 +0200 Subject: [PATCH] Update functions.lua --- [esx]/es_extended/client/functions.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/[esx]/es_extended/client/functions.lua b/[esx]/es_extended/client/functions.lua index bc17b92b..707dcd50 100644 --- a/[esx]/es_extended/client/functions.lua +++ b/[esx]/es_extended/client/functions.lua @@ -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)