{"id":201036,"date":"2025-11-01T15:21:35","date_gmt":"2025-11-01T14:21:35","guid":{"rendered":"https:\/\/fivemx.com\/?post_type=product&#038;p=201036"},"modified":"2025-12-24T07:30:02","modified_gmt":"2025-12-24T06:30:02","slug":"inotificacaov3","status":"publish","type":"product","link":"https:\/\/fivemx.com\/pt\/inotificationv3\/","title":{"rendered":"iNotifica\u00e7\u00e3oV3"},"content":{"rendered":"<p><iframe title=\"ADN&#039;S | iNotificationV3 | NUI Advanced Notification | FiveM Scripts\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/gC2g8zfED68?feature=oembed\" loading=\"lazy\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<hr \/>\n<h2>\ud83d\udce6 Installation of Notifications<\/h2>\n<ol>\n<li>Drag the <code>iNotificationV3<\/code> folder into your resources.<\/li>\n<li>Add the line <code>ensure iNotificationV3<\/code> to your <code>server.cfg<\/code>.<\/li>\n<\/ol>\n<hr \/>\n<h2>\ud83d\udcdd Text Options<\/h2>\n<ol>\n<li>If you include <code>~h~<\/code> in text, it will make the text <strong>bold<\/strong> (example: <code>~h~Trying bold text~h~<\/code>).<\/li>\n<li>If you include <code>~i~<\/code> in text, it will make the text <em>italic<\/em> (example: <code>~i~Trying italic text~i~<\/code>).<\/li>\n<li>If you include <code>&lt;br\/&gt;<\/code> in text, it will create a <strong>line break<\/strong> (example: <code>line 1&lt;br\/&gt;line 2<\/code>).<\/li>\n<\/ol>\n<hr \/>\n<h2>\ud83d\udd14 Example Notifications (Client\/Server)<\/h2>\n<h3>Client Side<\/h3>\n<pre><code class=\"language-lua\">-- showNotification\r\nTriggerEvent(\"iNotificationV3:showNotification\", \"This is a message\", 5, \"left\");\r\n\r\n-- showAdvancedNotification\r\nTriggerEvent(\"iNotificationV3:showAdvancedNotification\", \"Title\", \"Subtitle\", \"this is a message\", \"CHAR_MP_BIKER_BOSS\", 7, \"left\");\r\n\r\n-- showHelpNotification\r\nTriggerEvent(\"iNotificationV3:showHelpNotification\", \"Press ~INPUT_PICKUP~ to ...\", 10, \"right\");\r\n\r\n-- showAdvancedHelpNotification\r\nTriggerEvent(\"iNotificationV3:showAdvancedHelpNotification\", \"Interactions\", \"Press ~INPUT_PICKUP~ to trigger ...\", \"CHAR_MP_BRUCIE\", 8, \"left\");\r\n<\/code><\/pre>\n<h3>Server Side<\/h3>\n<pre><code class=\"language-lua\">-- showNotification\r\nTriggerClientEvent(\"iNotificationV3:showNotification\", source, \"This is a message\", 5, \"left\");\r\n\r\n-- showAdvancedNotification\r\nTriggerClientEvent(\"iNotificationV3:showAdvancedNotification\", source, \"Title\", \"Subtitle\", \"this is a message\", \"CHAR_MP_BIKER_BOSS\", 7, \"left\");\r\n\r\n-- showHelpNotification\r\nTriggerClientEvent(\"iNotificationV3:showHelpNotification\", source, \"Press ~INPUT_PICKUP~ to ...\", 10, \"right\");\r\n\r\n-- showAdvancedHelpNotification\r\nTriggerClientEvent(\"iNotificationV3:showAdvancedHelpNotification\", source, \"Interactions\", \"Press ~INPUT_PICKUP~ to trigger ...\", \"CHAR_MP_BRUCIE\", 8, \"left\");\r\n<\/code><\/pre>\n<p>\u26a0\ufe0f <strong>Tip:<\/strong> We recommend not modifying all your notifications through ESX.<br \/>\nInstead, modify them individually within each script where they appear for better control (position, duration, etc.).<\/p>\n<hr \/>\n<h2>\ud83e\udde9 Modify All Notifications in Your ESX Framework Easily<\/h2>\n<ol>\n<li>Go to the folder <code>ex_extended\/client<\/code>.<\/li>\n<li>Open the file <code>functions.lua<\/code>.<\/li>\n<li>Follow the modification steps below.<\/li>\n<\/ol>\n<h3>\ud83d\udd27 Modification<\/h3>\n<p>Replace this code:<\/p>\n<pre><code class=\"language-lua\">ESX.ShowNotification = function(msg)\r\n    SetNotificationTextEntry('STRING');\r\n    AddTextComponentString(msg);\r\n    DrawNotification(0, 1);\r\nend\r\n\r\nESX.ShowAdvancedNotification = function(sender, subject, msg, textureDict, iconType, flash, saveToBrief, hudColorIndex)\r\n    if saveToBrief == nil then saveToBrief = true end\r\n    AddTextEntry('esxAdvancedNotification', msg)\r\n    BeginTextCommandThefeedPost('esxAdvancedNotification')\r\n    if hudColorIndex then ThefeedNextPostBackgroundColor(hudColorIndex) end\r\n    EndTextCommandThefeedPostMessagetext(textureDict, textureDict, false, iconType, sender, subject)\r\n    EndTextCommandThefeedPostTicker(flash or false, saveToBrief)\r\nend\r\n\r\nESX.ShowHelpNotification = function(msg, thisFrame, beep, duration)\r\n    AddTextEntry('esxHelpNotification', msg)\r\n\r\n    if thisFrame then\r\n        DisplayHelpTextThisFrame('esxHelpNotification', false)\r\n    else\r\n        if beep == nil then beep = true end\r\n        BeginTextCommandDisplayHelp('esxHelpNotification')\r\n        EndTextCommandDisplayHelp(0, false, beep, duration or -1)\r\n    end\r\nend\r\n<\/code><\/pre>\n<p>With this code:<\/p>\n<pre><code class=\"language-lua\">ESX.ShowNotification = function(msg, time, position)\r\n    TriggerEvent(\"iNotificationV3:showNotification\", msg, time or 12, position or \"left\");\r\nend\r\n\r\nESX.ShowAdvancedNotification = function(sender, subject, msg, textureDict, iconType, flash, saveToBrief, hudColorIndex)\r\n    TriggerEvent(\"iNotificationV3:showAdvancedNotification\", sender, subject, msg, textureDict, 12, \"left\")\r\nend\r\n\r\nESX.ShowHelpNotification = function(msg, thisFrame, beep, duration)\r\n    TriggerEvent(\"iNotificationV3:showHelpNotification\", msg, 12, \"left\");\r\nend\r\n<\/code><\/pre>\n<hr \/>\n<h2>\u2795 Add Notifications Easily<\/h2>\n<h3><code>showNotification<\/code><\/h3>\n<h4>Client<\/h4>\n<pre><code class=\"language-lua\">-- message: string (message content) (\u26a0\ufe0f Required)\r\n-- duration: number (seconds the notification stays visible) (\u274c Optional)\r\n-- location: string[\"left\", \"middle\", \"right\"] (screen position) (\u274c Optional)\r\nexports[\"iNotificationV3\"]:showNotification(message, duration, location);\r\n-- or:\r\nTriggerEvent(\"iNotificationV3:showNotification\", message, duration, location);\r\n<\/code><\/pre>\n<h4>Server<\/h4>\n<pre><code class=\"language-lua\">TriggerClientEvent(\"iNotificationV3:showNotification\", playerId or source, message, duration, location)\r\n<\/code><\/pre>\n<hr \/>\n<h3><code>showAdvancedNotification<\/code><\/h3>\n<h4>Client<\/h4>\n<pre><code class=\"language-lua\">-- title: string (title of notification) (\u274c Optional)\r\n-- subtitle: string (subtitle) (\u274c Optional)\r\n-- message: string (message content) (\u26a0\ufe0f Required)\r\n-- duration: number (display duration) (\u274c Optional)\r\n-- location: string[\"left\", \"middle\", \"right\"] (screen position) (\u274c Optional)\r\n-- icon: string (GTA 5 notification image or custom image name from \"assets\/images\/\") (\u274c Optional)\r\n\r\nexports[\"iNotificationV3\"]:showAdvancedNotification(title, subtitle, message, icon, duration, location);\r\n-- or:\r\nTriggerEvent(\"iNotificationV3:showAdvancedNotification\", title, subtitle, message, icon, duration, location);\r\n<\/code><\/pre>\n<h4>Server<\/h4>\n<pre><code class=\"language-lua\">local inotif = \"iNotificationV3:showAdvancedNotification\";\r\nTriggerClientEvent(inotif, playerId or source, title, subtitle, message, icon, duration, location)\r\n<\/code><\/pre>\n<hr \/>\n<h3><code>showHelpNotification<\/code><\/h3>\n<h4>Client<\/h4>\n<pre><code class=\"language-lua\">exports[\"iNotificationV3\"]:showHelpNotification(message, duration, location);\r\n-- or:\r\nTriggerEvent(\"iNotificationV3:showHelpNotification\", message, duration, location);\r\n<\/code><\/pre>\n<h4>Server<\/h4>\n<pre><code class=\"language-lua\">local inotif = \"iNotificationV3:showHelpNotification\";\r\nTriggerClientEvent(inotif, playerId or source, message, duration, location)\r\n<\/code><\/pre>\n<hr \/>\n<h3><code>showAdvancedHelpNotification<\/code> (<a href=\"https:\/\/prnt.sc\/70ktraKMhpzc\" target=\"_blank\" rel=\"noopener\">Preview<\/a>)<\/h3>\n<h4>Client<\/h4>\n<pre><code class=\"language-lua\">exports[\"iNotificationV3\"]:showAdvancedHelpNotification(title, message, icon, duration, location);\r\n-- or:\r\nTriggerEvent(\"iNotificationV3:showAdvancedHelpNotification\", title, message, icon, duration, location);\r\n<\/code><\/pre>\n<h4>Server<\/h4>\n<pre><code class=\"language-lua\">local inotif = \"iNotificationV3:showAdvancedHelpNotification\";\r\nTriggerClientEvent(inotif, playerId or source, title, message, icon, duration, location)\r\n<\/code><\/pre>\n<hr \/>\n<p>\u2705 <strong>Done!<\/strong><br \/>\nYour file has now been fully translated into English while preserving code blocks and formatting.<\/p>\n<p>Would you like me to generate an <strong>English-markdown version of this file (<code>readme_en.md<\/code>)<\/strong> that you can download?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iNotificationV3 \u2013 Notifica\u00e7\u00e3o Avan\u00e7ada da NUI<\/p>","protected":false},"featured_media":201037,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[96,1893],"product_tag":[],"class_list":["post-201036","product","type-product","status-publish","has-post-thumbnail","product_cat-esx-scripts","product_cat-fivem-hud","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product\/201036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/comments?post=201036"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/media\/201037"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/media?parent=201036"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_brand?post=201036"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_cat?post=201036"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_tag?post=201036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}