From 59d2e9a839249f26881f1aa263d3e75343b5996e Mon Sep 17 00:00:00 2001 From: zlexif <146517988+auradevelopment5m@users.noreply.github.com> Date: Mon, 5 May 2025 19:49:07 +0300 Subject: [PATCH] fix(readme esx_notify): --- [core]/esx_notify/readme.md | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/[core]/esx_notify/readme.md b/[core]/esx_notify/readme.md index f6bc4c9d..430f8a34 100644 --- a/[core]/esx_notify/readme.md +++ b/[core]/esx_notify/readme.md @@ -1,33 +1,48 @@ -

[ESX] Notify

Discord - Website - Documentation +`

`[ESX] Notify```

``

`````Discord`` - ``Website`` - ``Documentation`````` A beautiful and simple NUI notification system for ESX # Example Code -

Change style and time

+`

`Change style and time`

` ```lua ---usage: message/type/length ESX.ShowNotification("message here", "error", 3000) ESX.ShowNotification("message here", "success", 3000) ESX.ShowNotification("message here", "info", 3000) +ESX.ShowNotification("message here", "warning", 3000) ESX.ShowNotification("text here") -- Default will time and type will be info/3000 + +-- With title (optional 4th parameter) +ESX.ShowNotification("message here", "success", 3000, "Achievement") ``` -

Export Usage

+`

`Export Usage`

` ```lua +-- Basic usage exports["esx_notify"]:Notify("info", 3000, "message here") + +-- With title +exports["esx_notify"]:Notify("success", 3000, "Item purchased!", "Shop") + +-- With line break +exports["esx_notify"]:Notify("warning", 4000, "Inventory full!~br~Some items were dropped.", "Warning") ``` -

Event Usage

+`

`Event Usage`

` ```lua +-- Basic usage TriggerEvent("ESX:Notify", "info", 3000, "message here") + +-- With title +TriggerEvent("ESX:Notify", "error", 5000, "You don't have enough money!", "Transaction Failed") ``` -

Color Code Usage

+`

`Color Code Usage`

` ```lua ~r~ = Red @@ -41,15 +56,14 @@ TriggerEvent("ESX:Notify", "info", 3000, "message here") ~o~ = Orange ESX.ShowNotification("I i ~r~love~s~ donuts", "success", 3000) + +-- Line break example +ESX.ShowNotification("You received ~br~1x ~g~ball~s~!", "success", 3000, "Item Received") ``` # Previews -![Preview_1](https://cdn.discordapp.com/attachments/944789399852417096/997890963445927977/unknown.png) - -![Preview_2_zoom](https://cdn.discordapp.com/attachments/944789399852417096/997892214053163148/unknown.png) - -![Preview_2](https://cdn.discordapp.com/attachments/944789399852417096/997891726326898909/unknown.png) +![Preview 1](https://r2.fivemanage.com/gWoWHGuKZdsK8PFzaVuGC/image_2025-05-05_194204916.png) ## Legal @@ -61,4 +75,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 . +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