{"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":"npc-dialog","status":"publish","type":"product","link":"https:\/\/fivemx.com\/de\/npc-dialog\/","title":{"rendered":"0R NPC-Dialog"},"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>Mit dem Modern NPC Dialog Script k\u00f6nnen Spieler dynamisch mit NPCs auf Ihrem FiveM-Server interagieren und so immersive und spannende Erlebnisse bieten. Inspiriert von YesPixel 4.0 erm\u00f6glicht Ihnen dieses Skript, sinnvolle Gespr\u00e4che zu f\u00fchren, die je nach den Reaktionen der Spieler zu unterschiedlichen Ergebnissen f\u00fchren k\u00f6nnen. Passen Sie die Positionen, Fragen und Antworten der NPCs an Ihre Handlung oder Ihr Serverthema an.<\/p>\n<p><strong>Hauptmerkmale:<\/strong><\/p>\n<ul>\n<li><strong>Ressourceneffizienz:<\/strong> Ben\u00f6tigt nur 0,03 <a class=\"wpil_keyword_link\" href=\"https:\/\/fivemx.com\/de\/so-verwenden-sie-resmon-in-fivem-um-ressourcen-zu-optimieren\/\" title=\"So verwenden Sie Resmon in FiveM (zur Optimierung der Ressourcen)\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"1861\">resmon<\/a> Der Wert betr\u00e4gt 0,00 im aktiven Zustand und 0,00 im Leerlauf, um die Serverleistung so wenig wie m\u00f6glich zu beeintr\u00e4chtigen.<\/li>\n<li><strong>Flexibilit\u00e4t:<\/strong> Kompatibel mit Ziel- und Interaktionstasten und bietet Flexibilit\u00e4t bei der Interaktion der Spieler mit NPCs.<\/li>\n<li><strong>Anpassung:<\/strong> \u00c4ndern Sie einfach die Platzierung der NPCs, Dialogoptionen und Antworten, um einzigartige Szenarien und Ziele zu erstellen, die auf die Anforderungen Ihres Servers zugeschnitten sind.<\/li>\n<\/ul>\n<p>Verwandeln Sie die Spielerinteraktionen mit diesem vielseitigen und leichten Dialogsystem!<\/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\/de\/wp-json\/wp\/v2\/product\/152952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/comments?post=152952"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/media\/152953"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/media?parent=152952"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product_brand?post=152952"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product_cat?post=152952"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product_tag?post=152952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}