Skip to content

Commit

Permalink
chore: esx_notify updated to version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Feb 29, 2024
1 parent efacccd commit 2762250
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 18 deletions.
2 changes: 1 addition & 1 deletion server-data/resources/[esx]/esx_notify/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions server-data/resources/[esx]/esx_notify/Notify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion server-data/resources/[esx]/esx_notify/fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -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")

Expand Down
2 changes: 2 additions & 0 deletions server-data/resources/[esx]/esx_notify/nui/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ body {
0% {
transform: scaleY(0);
}

80% {
transform: scaleY(1.1);
}

100% {
transform: scaleY(1);
}
Expand Down
28 changes: 16 additions & 12 deletions server-data/resources/[esx]/esx_notify/nui/index.html
Original file line number Diff line number Diff line change
@@ -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,[email protected],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,[email protected],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>
2 changes: 1 addition & 1 deletion server-data/resources/[esx]/esx_notify/nui/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ notification = (data) => {
}, data.length);

return notification;
};
};
4 changes: 3 additions & 1 deletion server-data/resources/[esx]/esx_notify/readme.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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/>.
You should have received a copy Of the GNU General Public License along with this program. If Not, see <http://www.gnu.org/licenses/>.

0 comments on commit 2762250

Please sign in to comment.