From 08bc2e81d0d5a3fd2f19f84b13c523f34a538c48 Mon Sep 17 00:00:00 2001 From: Benzo <102178921+Benzo00@users.noreply.github.com> Date: Thu, 15 Sep 2022 21:27:05 +0200 Subject: [PATCH] refactor: removed native notify --- [esx]/es_extended/client/functions.lua | 8 +------- [esx]/es_extended/config.lua | 4 +--- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/[esx]/es_extended/client/functions.lua b/[esx]/es_extended/client/functions.lua index 53fdb072..467f88a1 100644 --- a/[esx]/es_extended/client/functions.lua +++ b/[esx]/es_extended/client/functions.lua @@ -84,13 +84,7 @@ function ESX.Progressbar(message, length, Options) end function ESX.ShowNotification(message, type, length) - if Config.NativeNotify then - BeginTextCommandThefeedPost('STRING') - AddTextComponentSubstringPlayerName(message) - EndTextCommandThefeedPostTicker(0, 1) - else - exports["esx_notify"]:Notify(type, length, message) - end + exports["esx_notify"]:Notify(message, length, type) end function ESX.TextUI(message, type) diff --git a/[esx]/es_extended/config.lua b/[esx]/es_extended/config.lua index 15292053..151d960b 100644 --- a/[esx]/es_extended/config.lua +++ b/[esx]/es_extended/config.lua @@ -26,7 +26,6 @@ Config.EnableDebug = false -- Use Debug options? Config.EnableDefaultInventory = true -- Display the default Inventory ( F2 ) Config.EnableWantedLevel = false -- Use Normal GTA wanted Level? Config.EnablePVP = true -- Allow Player to player combat -Config.NativeNotify = false -- use old native notification? Config.Multichar = true -- Enable support for esx_multicharacter Config.Identity = true -- Select a characters identity data before they have loaded in (this happens by default with multichar) @@ -61,6 +60,7 @@ Config.RemoveHudCommonents = { [22] = false, --HUD_WEAPONS } +Config.MaxAdminVehicles = true -- admin vehicles spawn with max vehcle settings Config.CustomAIPlates = 'ESX.A111' -- Custom plates for AI vehicles -- Pattern string format --1 will lead to a random number from 0-9. @@ -70,5 +70,3 @@ Config.CustomAIPlates = 'ESX.A111' -- Custom plates for AI vehicles --^A will lead to a literal A being emitted. --Any other character will lead to said character being emitted. -- A string shorter than 8 characters will be padded on the right. - -Config.MaxAdminVehicles = true -- admin vehicles spawn with max vehcle settings \ No newline at end of file