From c345d40374194ef7c2becca7e27bd183fac28239 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Wed, 15 Jan 2020 12:11:37 +0100 Subject: [PATCH] Disable DisplayHelpTextThisFrame saveToBreif, fixed code --- client/functions.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index 854b0b40..ec5e3b29 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -45,9 +45,10 @@ ESX.SetPlayerData = function(key, val) end ESX.ShowNotification = function(msg, flash, saveToBrief) + if saveToBrief == nil then saveToBrief = true end AddTextEntry('esxNotification', msg) BeginTextCommandThefeedPost('esxNotification') - EndTextCommandThefeedPostTicker(flash or false, saveToBrief or true) + EndTextCommandThefeedPostTicker(flash or false, saveToBrief) end ESX.ShowAdvancedNotification = function(sender, subject, msg, textureDict, iconType, flash, saveToBrief) @@ -61,10 +62,11 @@ ESX.ShowHelpNotification = function(msg, thisFrame, beep, duration) AddTextEntry('esxHelpNotification', msg) if thisFrame then - DisplayHelpTextThisFrame('esxHelpNotification', true) + DisplayHelpTextThisFrame('esxHelpNotification', false) else + if beep == nil then beep = true end BeginTextCommandDisplayHelp('esxHelpNotification') - EndTextCommandDisplayHelp(0, false, beep or true, duration or -1) + EndTextCommandDisplayHelp(0, false, beep, duration or -1) end end