{"id":152952,"date":"2024-09-02T12:06:24","date_gmt":"2024-09-02T10:06:24","guid":{"rendered":"https:\/\/hifivem.com\/?post_type=product&#038;p=152952"},"modified":"2025-12-24T07:29:55","modified_gmt":"2025-12-24T06:29:55","slug":"dialogo-npc","status":"publish","type":"product","link":"https:\/\/fivemx.com\/pt\/npc-dialog\/","title":{"rendered":"Di\u00e1logo 0R NPC"},"content":{"rendered":"<p><iframe title=\"Fivem Npc Dialog | Standalone | Yespixel 4.0 Inspired\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/3pDfhhVKgsE?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<h3>Readme file<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">---\r\ndescription: To hide menu use this export: exports[\"0r-npcdialog\"]:closeMenu()\r\n---\r\n\r\n## Here is a empty npc dialog to help you creating new ones.\r\n\r\n```lua\r\n{ -- 1\r\n    Ped = {\r\n        Enable = true,\r\n        coords = Vector4 Coords,\r\n        hash = \"Ped Hash\" -- Check here https:\/\/docs.fivem.net\/docs\/game-references\/ped-models\/\r\n    },\r\n    Blip = { -- https:\/\/docs.fivem.net\/docs\/game-references\/blips\/\r\n        Enable = false, -- to enable make it true\r\n        coords = Vector3 Coords,\r\n        sprite = Blip Sprite,\r\n        color = Blip Color,\r\n        scale = Blip Scale,\r\n        text = \"Blip Text\"\r\n    },\r\n    Menu = {\r\n        Label = \"Menu Label\",\r\n        Description = \"Menu Description\",\r\n        Icon = \"fas fa-hands-usd\", -- F\u0131nd an icon for your menu from this website https:\/\/fontawesome.com\/v5\/search | You can use Pro Icons too\r\n    },\r\n    AutoMessage = { -- This is an automatic message system that sends automatic message when you open dialog menu.\r\n        Enable = false, -- to enable make it true\r\n        AutoMessages = {\r\n            {type = \"question\", text = \"Write your text here.\"}, -- message type question means it adds a question icon to message\r\n            {type = \"message\",  text = \"Write your text here.\"} -- this is a default message\r\n        }\r\n    },\r\n    Buttons = {\r\n        [1] = { -- Button 1 and answers\r\n            label = \"Button Label\",\r\n            systemAnswer = {enable = true, type = \"question\", text = \"You accepted heist you want to coordinate plan?\"},\r\n            playerAnswer = {enable = true, text = \"Yes let's do it!\"},\r\n            maxClick = 2, -- Max click amount after the amount maximize it disables button\r\n            onClick = function()\r\n                -- Write your export or events here\r\n                -- exports[GetCurrentResourceName()]:closeMenu()\r\n            end\r\n        },\r\n        [2] = { -- Button 2 and answers\r\n            label = \"Button Label\",\r\n            systemAnswer = {enable = true, type = \"message\", text = \"We need to synchronize our watches and stick to the plan.\"},\r\n            playerAnswer = {enable = true, text = \"Agreed. Everyone, make sure you know your roles and follow the timeline.\"},\r\n            maxClick = 1, -- Max click amount after the amount maximize it disables button\r\n            onClick = function()\r\n                -- Write your export or events here\r\n                -- exports[GetCurrentResourceName()]:closeMenu()\r\n            end\r\n        },\r\n        [3] = { -- Button 3 and answers\r\n            label = \"Button Label\",\r\n            systemAnswer = {enable = true, type = \"message\", text = \"It's time. Let's move in and secure the objective.\"},\r\n            playerAnswer = {enable = true, text = \"Roger that. Stay focused and don't engage unless absolutely necessary.\"},\r\n            maxClick = 1, -- Max click amount after the amount maximize it disables button\r\n            onClick = function()\r\n                -- Write your export or events here\r\n                -- exports[GetCurrentResourceName()]:closeMenu()\r\n            end\r\n        },\r\n        [4] = { -- Button 4 and answers\r\n            label = \"Button Label\",\r\n            systemAnswer = {enable = true, type = \"message\", text = \"The authorities are closing in. We need a clear path for extraction.\"},\r\n            playerAnswer = {enable = false, text = \"Understood. Head to the rendezvous point, and be ready to move fast.\"},\r\n            maxClick = 1, -- Max click amount after the amount maximize it disables button\r\n            onClick = function()\r\n                -- Write your export or events here\r\n                -- exports[GetCurrentResourceName()]:closeMenu()\r\n            end\r\n        },\r\n        -- Don't write more than 5 buttons\r\n    },\r\n    Interaction = {\r\n        Target = {\r\n            Enable = false, -- to enable make it true\r\n            Distance = 2.0,\r\n            Label = \"Target Label\",\r\n            Icon = \"fa-solid fa-address-book\"\r\n        },\r\n        Text = {\r\n            Enable = true, -- to enable make it true\r\n            Distance = 3.0,\r\n            Label = \"Text Label\"\r\n        },\r\n        DrawText = {\r\n            Enable = false, -- to enable make it true\r\n            Distance = 3.0,\r\n            Show = function()\r\n                exports[\"qb-core\"]:DrawText(\"[Key Name] Text Label\", \"Menu Position - left, right\")\r\n            end,\r\n            Hide = function()\r\n                exports[\"qb-core\"]:HideText()\r\n            end\r\n        }\r\n    }\r\n},\r\n```<\/pre>\n<h3>Config<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Config = {\r\n    MenuAlign = \"right\", -- left or right\r\n    Dialogs = {\r\n        { -- 1\r\n            Ped = {\r\n                Enable = true,\r\n                coords = vector4(-1465.16, -34.56, 55.05, 310.67),\r\n                hash = \"a_m_y_hasjew_01\", -- Check here https:\/\/docs.fivem.net\/docs\/game-references\/ped-models\/\r\n                animDict = \"amb@world_human_hang_out_street@female_arms_crossed@idle_a\",\r\n                animName = \"idle_a\"\r\n            },\r\n            Blip = { -- https:\/\/docs.fivem.net\/docs\/game-references\/blips\/\r\n                Enable = false,\r\n                coords = vector3(-1465.16, -34.56, 55.05),\r\n                sprite = 59,\r\n                color = 2,\r\n                scale = 0.5,\r\n                text = \"Blip Text\"\r\n            },\r\n            Menu = {\r\n                Label = \"HEIST MISSION\",\r\n                Description = \"SYSTEM\",\r\n                Icon = \"fas fa-hands-usd\", -- https:\/\/fontawesome.com\/v5\/search | You can use Pro Icons too\r\n            },\r\n            AutoMessage = { -- This is an automatic message system that sends automatic message when you open dialog menu.\r\n                Enable = true,\r\n                AutoMessages = {\r\n                    {type = \"question\", text = \"Welcome, choose a mission.\"},\r\n                    --{type = \"message\",  text = \"This is an automatic message.\"}\r\n                }\r\n            },\r\n            Buttons = {\r\n                [1] = { -- Button 1 and answers\r\n                    label = \"Accept Heist\",\r\n                    systemAnswer = {enable = true, type = \"question\", text = \"You accepted heist you want to coordinate plan?\"},\r\n                    playerAnswer = {enable = true, text = \"Yes let's do it!\"},\r\n                    maxClick = 2,\r\n                    onClick = function()\r\n                        -- Write your export or events here\r\n                        -- exports[GetCurrentResourceName()]:closeMenu()\r\n                    end\r\n                },\r\n                [2] = { -- Button 2 and answers\r\n                    label = \"Coordinate Plan\",\r\n                    systemAnswer = {enable = true, type = \"message\", text = \"We need to synchronize our watches and stick to the plan.\"},\r\n                    playerAnswer = {enable = true, text = \"Agreed. Everyone, make sure you know your roles and follow the timeline.\"},\r\n                    maxClick = 1,\r\n                    onClick = function()\r\n                        -- Write your export or events here\r\n                        -- exports[GetCurrentResourceName()]:closeMenu()\r\n                    end\r\n                },\r\n                [3] = { -- Button 3 and answers\r\n                    label = \"Execute Mission\",\r\n                    systemAnswer = {enable = true, type = \"message\", text = \"It's time. Let's move in and secure the objective.\"},\r\n                    playerAnswer = {enable = true, text = \"Roger that. Stay focused and don't engage unless absolutely necessary.\"},\r\n                    maxClick = 1,\r\n                    onClick = function()\r\n                        -- Write your export or events here\r\n                        -- exports[GetCurrentResourceName()]:closeMenu()\r\n                    end\r\n                },\r\n                [4] = { -- Button 4 and answers\r\n                    label = \"Escape Route\",\r\n                    systemAnswer = {enable = true, type = \"message\", text = \"The authorities are closing in. We need a clear path for extraction.\"},\r\n                    playerAnswer = {enable = false, text = \"Understood. Head to the rendezvous point, and be ready to move fast.\"},\r\n                    maxClick = 1,\r\n                    onClick = function()\r\n                        -- Write your export or events here\r\n                        -- exports[GetCurrentResourceName()]:closeMenu()\r\n                    end\r\n                },\r\n                -- Don't write more than 5 buttons\r\n            },\r\n            Interaction = {\r\n                Target = {\r\n                    Enable = false,\r\n                    Distance = 2.0,\r\n                    Label = \"Contact\",\r\n                    Icon = \"fa-solid fa-address-book\"\r\n                },\r\n                Text = {\r\n                    Enable = false,\r\n                    Distance = 3.0,\r\n                    Label = \"[E] Contact\"\r\n                },\r\n                DrawText = {\r\n                    Enable = true,\r\n                    Distance = 3.0,\r\n                    Show = function()\r\n                        exports[\"qb-core\"]:DrawText(\"Contact\", \"left\")\r\n                    end,\r\n                    Hide = function()\r\n                        exports[\"qb-core\"]:HideText()\r\n                    end\r\n                }\r\n            }\r\n        },\r\n        { -- 2\r\n            Ped = {\r\n                Enable = true,\r\n                coords = vector4(-266.53, -972.09, 31.22, 221.37),\r\n                hash = \"a_m_m_soucent_02\", -- Check here https:\/\/docs.fivem.net\/docs\/game-references\/ped-models\/\r\n                animDict = \"amb@world_human_hang_out_street@female_arms_crossed@idle_a\",\r\n                animName = \"idle_a\"\r\n            },\r\n            Blip = { -- https:\/\/docs.fivem.net\/docs\/game-references\/blips\/\r\n                Enable = false,\r\n                coords = vector3(-266.53, -972.09, 31.22),\r\n                sprite = 59,\r\n                color = 2,\r\n                scale = 0.5,\r\n                text = \"Blip Text\"\r\n            },\r\n            Menu = {\r\n                Label = \"GOVERNMENT\",\r\n                Description = \"MENU\",\r\n                Icon = \"fas fa-id-card-alt\", -- https:\/\/fontawesome.com\/v5\/search | You can use Pro Icons too\r\n            },\r\n            AutoMessage = { -- This is an automatic message system that sends automatic message when you open dialog menu.\r\n                Enable = true,\r\n                AutoMessages = {\r\n                    {type = \"question\", text = \"Welcome, choose what you want to do.\"},\r\n                    --{type = \"message\",  text = \"This is an automatic message.\"}\r\n                }\r\n            },\r\n            Buttons = {\r\n                [1] = { -- Button 1 and answers\r\n                    label = \"Renew ID Card\",\r\n                    systemAnswer = {enable = true, type = \"question\", text = \"You want to renew your identity card?\"},\r\n                    playerAnswer = {enable = true, text = \"Yes I lost it, I need new one!\"},\r\n                    maxClick = 2,\r\n                    onClick = function()\r\n                        -- Write your export or events here\r\n                        -- exports[GetCurrentResourceName()]:closeMenu()\r\n                    end\r\n                },\r\n                [2] = { -- Button 2 and answers\r\n                    label = \"Renew Driver License\",\r\n                    systemAnswer = {enable = true, type = \"message\", text = \"You want to renew your driver license?\"},\r\n                    playerAnswer = {enable = true, text =\"Yes I lost it, I need new one!\"},\r\n                    maxClick = 1,\r\n                    onClick = function()\r\n                        -- Write your export or events here\r\n                        -- exports[GetCurrentResourceName()]:closeMenu()\r\n                    end\r\n                },\r\n                [3] = { -- Button 3 and answers\r\n                    label = \"Buy License\",\r\n                    systemAnswer = {enable = true, type = \"message\", text = \"You want to buy a weapon license.\"},\r\n                    playerAnswer = {enable = true, text = \"Yes I need to protect myself.\"},\r\n                    maxClick = 1,\r\n                    onClick = function()\r\n                        -- Write your export or events here\r\n                        -- exports[GetCurrentResourceName()]:closeMenu()\r\n                    end\r\n                },\r\n                [4] = { -- Button 4 and answers\r\n                    label = \"Leave Conversation\",\r\n                    systemAnswer = {enable = false, type = \"message\", text = \"The authorities are closing in. We need a clear path for extraction.\"},\r\n                    playerAnswer = {enable = false, text = \"Understood. Head to the rendezvous point, and be ready to move fast.\"},\r\n                    maxClick = 1,\r\n                    onClick = function()\r\n                        -- Write your export or events here\r\n                        exports[GetCurrentResourceName()]:closeMenu()\r\n                    end\r\n                },\r\n                -- Don't write more than 5 buttons\r\n            },\r\n            Interaction = {\r\n                Target = {\r\n                    Enable = false,\r\n                    Distance = 2.0,\r\n                    Label = \"Contact\",\r\n                    Icon = \"fa-solid fa-address-book\"\r\n                },\r\n                Text = {\r\n                    Enable = false,\r\n                    Distance = 3.0,\r\n                    Label = \"[E] Contact\"\r\n                },\r\n                DrawText = {\r\n                    Enable = true,\r\n                    Distance = 3.0,\r\n                    Show = function()\r\n                        exports[\"qb-core\"]:DrawText(\"Contact\", \"left\")\r\n\r\n                    end,\r\n                    Hide = function()\r\n                        exports[\"qb-core\"]:HideText()\r\n                    end\r\n                }\r\n            }\r\n        },\r\n    }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>O Modern NPC Dialog Script permite que os jogadores interajam dinamicamente com NPCs no seu servidor FiveM, oferecendo experi\u00eancias imersivas e envolventes. Inspirado no YesPixel 4.0, este script permite que voc\u00ea crie conversas significativas que podem levar a resultados diferentes com base nas respostas dos jogadores. Personalize as posi\u00e7\u00f5es, perguntas e respostas dos NPCs para se adequarem ao seu enredo ou tema do servidor.<\/p>\n<p><strong>Principais caracter\u00edsticas:<\/strong><\/p>\n<ul>\n<li><strong>Efici\u00eancia de recursos:<\/strong> Utiliza apenas 0,03 <a class=\"wpil_keyword_link\" href=\"https:\/\/fivemx.com\/pt\/como-usar-resmon-em-fivem-otimizar-recursos\/\" title=\"Como usar o Resmon no FiveM (para otimizar recursos)\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"1861\">resmon<\/a> Quando ativo, o valor \u00e9 0,00 e, quando ocioso, \u00e9 0,00, garantindo um impacto m\u00ednimo no desempenho do servidor.<\/li>\n<li><strong>Flexibilidade:<\/strong> Compat\u00edvel com teclas de alvo e intera\u00e7\u00e3o, oferecendo flexibilidade na forma como os jogadores interagem com os NPCs.<\/li>\n<li><strong>Personaliza\u00e7\u00e3o:<\/strong> Modifique facilmente o posicionamento dos NPCs, as op\u00e7\u00f5es de di\u00e1logo e as respostas para criar cen\u00e1rios e objetivos exclusivos, adaptados \u00e0s necessidades do seu servidor.<\/li>\n<\/ul>\n<p>Transforme as intera\u00e7\u00f5es dos jogadores com este sistema de di\u00e1logo vers\u00e1til e leve!<\/p>","protected":false},"featured_media":152953,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[2902],"product_cat":[96,512,2907,511],"product_tag":[],"class_list":["post-152952","product","type-product","status-publish","has-post-thumbnail","product_brand-0resmon","product_cat-esx-scripts","product_cat-qbcore-scripts","product_cat-qbox-scripts","product_cat-standalone-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product\/152952","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=152952"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/media\/152953"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/media?parent=152952"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_brand?post=152952"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_cat?post=152952"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_tag?post=152952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}