refactor: removed native notify

This commit is contained in:
Benzo
2022-09-15 21:27:05 +02:00
parent 69306621a8
commit 08bc2e81d0
2 changed files with 2 additions and 10 deletions
+1 -7
View File
@@ -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)
+1 -3
View File
@@ -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