From 2762250355549cd44434bf11f690f14f7861cd86 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Thu, 29 Feb 2024 18:34:53 +0100 Subject: [PATCH] chore: esx_notify updated to version 1.0.1 --- .../resources/[esx]/esx_notify/LICENSE | 2 +- .../resources/[esx]/esx_notify/Notify.lua | 4 +-- .../resources/[esx]/esx_notify/fxmanifest.lua | 3 +- .../[esx]/esx_notify/nui/css/style.css | 2 ++ .../resources/[esx]/esx_notify/nui/index.html | 28 +++++++++++-------- .../[esx]/esx_notify/nui/js/script.js | 2 +- .../resources/[esx]/esx_notify/readme.md | 4 ++- 7 files changed, 27 insertions(+), 18 deletions(-) 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 @@ - - - - - - ESX Notify - - -
- -
- + + + + + + + ESX Notify + + + +
+ +
+ + \ 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 @@ +

[ESX] Notify

Discord - Website - Documentation + 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 . \ 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 .