.
\ No newline at end of file
diff --git a/[esx]/esx_textui/TextUI.lua b/[esx]/esx_textui/TextUI.lua
index b6794a97..18bef60b 100644
--- a/[esx]/esx_textui/TextUI.lua
+++ b/[esx]/esx_textui/TextUI.lua
@@ -23,18 +23,18 @@ RegisterNetEvent('ESX:HideUI', HideUI)
if Debug then
RegisterCommand("textui:error", function()
- TriggerEvent("ESX:TextUI", "i ~r~love~s~ donuts", "error")
+ ESX.TextUI("i ~r~love~s~ donuts", "error")
end)
RegisterCommand("textui:success", function()
- TriggerEvent("ESX:TextUI", "i ~r~love~s~ donuts", "success")
+ ESX.TextUI("i ~g~love~s~ donuts", "success")
end)
RegisterCommand("textui:info", function()
- TriggerEvent("ESX:TextUI", "i ~r~love~s~ donuts", "info")
+ ESX.TextUI("i ~b~love~s~ donuts", "info")
end)
RegisterCommand("textui:hide", function()
- TriggerEvent("ESX:HideUI")
+ ESX.HideUI()
end)
end
diff --git a/[esx]/esx_textui/nui/js/script.js b/[esx]/esx_textui/nui/js/script.js
index 3afca1e3..b83b850d 100644
--- a/[esx]/esx_textui/nui/js/script.js
+++ b/[esx]/esx_textui/nui/js/script.js
@@ -21,7 +21,7 @@ const types = {
// the color codes example `i ~r~love~s~ donuts`
const codes = {
"~r~": "red",
- "~b~": "blue",
+ "~b~": "#378cbf",
"~g~": "green",
"~y~": "yellow",
"~p~": "purple",
diff --git a/[esx]/esx_textui/readme.md b/[esx]/esx_textui/readme.md
new file mode 100644
index 00000000..f5070555
--- /dev/null
+++ b/[esx]/esx_textui/readme.md
@@ -0,0 +1,52 @@
+[ESX] TextUI
Discord - Website - Documentation
+
+A beautiful and simple Persistent Notification.
+
+# Example Code
+
+
Change style type
+
+```lua
+---usage: message/type
+ESX.TextUI("i ~r~love~s~ donuts", "error")
+ESX.TextUI("i ~g~love~s~ donuts", "success")
+ESX.TextUI("i ~b~love~s~ donuts", "info")
+```
+
+Hide the TextUI
+
+```lua
+ESX.HideUI()
+```
+
+Color Code Usage
+
+```lua
+~r~ = Red
+~b~ = Blue
+~g~ = Green
+~y~ = Yellow
+~p~ = Purple
+~c~ = Grey
+~m~ = Dark Grey
+~u~ = Black
+~o~ = Orange
+
+ESX.TextUI("i ~r~love~s~ donuts", "error")
+```
+
+# Previews
+
+
+
+## Legal
+
+esx_textui - Persistant Notifications!
+
+Copyright (C) 2022 ESX-Framework
+
+This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.
+
+This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.
+
+You should have received a copy Of the GNU General Public License along with this program. If Not, see .