diff --git a/server-data/resources/[esx]/esx_notify/LICENSE b/server-data/resources/[esx]/esx_notify/LICENSE index 803b49f15..7feddc19c 100644 --- a/server-data/resources/[esx]/esx_notify/LICENSE +++ b/server-data/resources/[esx]/esx_notify/LICENSE @@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. esx_menu_default - Copyright (C) 2015-2024 + Copyright (C) 2015-2024 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 diff --git a/server-data/resources/[esx]/esx_notify/Notify.lua b/server-data/resources/[esx]/esx_notify/Notify.lua index 80cf57536..1f9140ff5 100644 --- a/server-data/resources/[esx]/esx_notify/Notify.lua +++ b/server-data/resources/[esx]/esx_notify/Notify.lua @@ -25,8 +25,8 @@ local function Notify(notificatonType, length, message) end SendNuiMessage(json.encode({ - type = notificatonType, - length = length, + type = notificatonType or "info", + length = length or 3000, message = message or "ESX-Notify", })) end diff --git a/server-data/resources/[esx]/esx_notify/fxmanifest.lua b/server-data/resources/[esx]/esx_notify/fxmanifest.lua index 25cb10062..cf402da06 100644 --- a/server-data/resources/[esx]/esx_notify/fxmanifest.lua +++ b/server-data/resources/[esx]/esx_notify/fxmanifest.lua @@ -1,7 +1,8 @@ fx_version("adamant") + lua54("yes") game("gta5") -version("1.0.0") +version("1.0.1") author("ESX-Framework") description("Official NUI Notification system for ESX") diff --git a/server-data/resources/[esx]/esx_notify/nui/css/style.css b/server-data/resources/[esx]/esx_notify/nui/css/style.css index 799e3c268..afc1a86f0 100644 --- a/server-data/resources/[esx]/esx_notify/nui/css/style.css +++ b/server-data/resources/[esx]/esx_notify/nui/css/style.css @@ -75,9 +75,11 @@ body { 0% { transform: scaleY(0); } + 80% { transform: scaleY(1.1); } + 100% { transform: scaleY(1); } diff --git a/server-data/resources/[esx]/esx_notify/nui/index.html b/server-data/resources/[esx]/esx_notify/nui/index.html index d35e3a913..a8db27dae 100644 --- a/server-data/resources/[esx]/esx_notify/nui/index.html +++ b/server-data/resources/[esx]/esx_notify/nui/index.html @@ -1,15 +1,19 @@ <!DOCTYPE html> <html lang="en"> - <head> - <script src="nui://game/ui/jquery.js" type="text/javascript"></script> - <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" /> - <link rel="stylesheet" href="css/style.css" /> - <script src="js/script.js"></script> - <title>ESX Notify</title> - </head> - <body> - <div id="root"> - <!-- this is just a template! No touchy touchy --> - </div> - </body> + +<head> + <script src="nui://game/ui/jquery.js" type="text/javascript"></script> + <link rel="stylesheet" + href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" /> + <link rel="stylesheet" href="css/style.css" /> + <script src="js/script.js"></script> + <title>ESX Notify</title> +</head> + +<body> + <div id="root"> + <!-- this is just a template! No touchy touchy --> + </div> +</body> + </html> \ No newline at end of file diff --git a/server-data/resources/[esx]/esx_notify/nui/js/script.js b/server-data/resources/[esx]/esx_notify/nui/js/script.js index d700017c6..a21fde57d 100644 --- a/server-data/resources/[esx]/esx_notify/nui/js/script.js +++ b/server-data/resources/[esx]/esx_notify/nui/js/script.js @@ -71,4 +71,4 @@ notification = (data) => { }, data.length); return notification; -}; \ No newline at end of file +}; diff --git a/server-data/resources/[esx]/esx_notify/readme.md b/server-data/resources/[esx]/esx_notify/readme.md index 3d064cacf..1d4398e04 100644 --- a/server-data/resources/[esx]/esx_notify/readme.md +++ b/server-data/resources/[esx]/esx_notify/readme.md @@ -1,3 +1,5 @@ +<h1 align='center'>[ESX] Notify</a></h1><p align='center'><b><a href='https://discord.esx-framework.org/'>Discord</a> - <a href='https://esx-framework.org/'>Website</a> - <a href='https://documentation.esx-framework.org/legacy/installation'>Documentation</a></b></h5> + A beautiful and simple NUI notification system for ESX # Example Code @@ -59,4 +61,4 @@ This program Is free software: you can redistribute it And/Or modify it under th 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 <http://www.gnu.org/licenses/>. \ No newline at end of file +You should have received a copy Of the GNU General Public License along with this program. If Not, see <http://www.gnu.org/licenses/>.