{"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-07-08T07:52:36","modified_gmt":"2025-07-08T05:52:36","slug":"npc-dialog","status":"publish","type":"product","link":"https:\/\/fivemx.com\/pl\/npc-dialog\/","title":{"rendered":"0R Dialog NPC"},"content":{"rendered":"<div class=\"video-container\"><iframe title=\"Fivem Npc Dialog | Standalone | Nopixel 4.0 Inspired\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/3pDfhhVKgsE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\"><\/iframe><\/div>\n<h3>Readme file<\/h3>\n<pre data-no-translation=\"\" 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 data-no-translation=\"\" 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<div class=\"video-container\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Modern NPC Dialog Script allows players to interact dynamically with NPCs in your FiveM server, offering immersive and engaging experiences. Inspired by NoPixel 4.0, this script enables you to craft meaningful conversations that can lead to different outcomes based on player responses. Customize NPC positions, questions, and answers to suit your storyline or server theme.<\/p>\n<p><strong>Kluczowe funkcje:<\/strong><\/p>\n<ul>\n<li><strong>Efektywno\u015b\u0107 zasob\u00f3w:<\/strong> Uses only 0.03 resmon when active and 0.00 when idle, ensuring minimal impact on server performance.<\/li>\n<li><strong>Elastyczno\u015b\u0107:<\/strong> Compatible with both target and interaction keys, offering flexibility in how players engage with NPCs.<\/li>\n<li><strong>Personalizacja:<\/strong> Easily modify NPC placements, dialogue options, and responses to create unique scenarios and objectives tailored to your server&#8217;s needs.<\/li>\n<\/ul>\n<p>Transform player interactions with this versatile and lightweight dialog system!<\/p>","protected":false},"featured_media":152953,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[2902],"product_cat":[96,3040,512,511],"product_tag":[],"class_list":["post-152952","product","type-product","status-publish","has-post-thumbnail","product_brand-0resmon","product_cat-esx-scripts","product_cat-nopixel-scripts","product_cat-qbcore-scripts","product_cat-standalone-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product\/152952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/comments?post=152952"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media\/152953"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media?parent=152952"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_brand?post=152952"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_cat?post=152952"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_tag?post=152952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}