{"id":157309,"date":"2024-09-17T09:20:13","date_gmt":"2024-09-17T07:20:13","guid":{"rendered":"https:\/\/hifivem.com\/?post_type=product&#038;p=157309"},"modified":"2025-07-08T07:52:36","modified_gmt":"2025-07-08T05:52:36","slug":"dialog-with-npc","status":"publish","type":"product","link":"https:\/\/fivemx.com\/nl\/dialog-with-npc\/","title":{"rendered":"Dialoog met NPC"},"content":{"rendered":"<div class=\"video-container\"><iframe title=\"Dialog with NPC | FiveM Script\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/Cs2dTMJxYZw?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>Configuratiebestand<\/h3>\n<pre data-no-translation=\"\" class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cfg = {}\r\n\r\ncfg.Dialog = {\r\n    title = {\r\n        text = \"Example Title\",\r\n        background = {\r\n            primary = \"#00243a\",\r\n            secondary = \"#050f19\",\r\n        },\r\n    },\r\n    additional = {\r\n        text = \"Example Additional\",\r\n        background = {\r\n            primary = \"#ff425d\",\r\n            secondary = \"#b7162b\",\r\n        },\r\n    },\r\n    message = {\r\n        text = \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse imperdiet enim vitae nibh ultricies, et laoreet libero ultricies. Vestibulum nec nisl sollicitudin, mattis augue eget, mollis sapien. Vivamus sed molestie arcu, at convallis augue.\",\r\n        typeEffect = 25,\r\n    },\r\n    audio = {\r\n        path = \"audio\/example.mp3\",\r\n        volume = 50,\r\n    },\r\n    buttons = {\r\n        {\r\n            input = true,\r\n            message = \"Provide Your Full Name\",\r\n            type = \"text\",\r\n            onSelect = function(id, input)\r\n                print(id, input)\r\n            end\r\n        },\r\n        {\r\n            input = true,\r\n            message = \"Provide Your Age\",\r\n            type = \"number\",\r\n            onSelect = function(id, input)\r\n                print(id, input)\r\n            end\r\n        },\r\n        {\r\n            input = false,\r\n            message = \"Test Button 1\",\r\n            icon = {\r\n                name = \"fa-solid fa-house\",\r\n                color = \"#ff425d\",\r\n            },\r\n            onSelect = function(id)\r\n                print(id)\r\n            end\r\n        },\r\n        {\r\n            input = false,\r\n            message = \"Test Button 2\",\r\n            icon = {\r\n                name = \"fa-solid fa-house\",\r\n            },\r\n            onSelect = function(id)\r\n                print(id)\r\n            end\r\n        },\r\n        {\r\n            input = false,\r\n            message = \"Test Button 3\",\r\n            onSelect = function(id)\r\n                print(id)\r\n            end\r\n        },\r\n    },\r\n}\r\n\r\ncfg.Camera = {\r\n    animation = {\r\n        male = {\r\n            {dict = \"missfbi3_party_d\", anim = \"stand_talk_loop_a_male1\"},\r\n            {dict = \"missfbi3_party_d\", anim = \"stand_talk_loop_a_male2\"},\r\n            {dict = \"missfbi3_party_d\", anim = \"stand_talk_loop_b_male2\"},\r\n            {dict = \"missfbi3_party_d\", anim = \"stand_talk_loop_b_male3\"},\r\n        },\r\n        female = {\r\n            {dict = \"missfbi3_party_b\", anim = \"talk_inside_loop_female\"},\r\n            {dict = \"missfbi3_party_d\", anim = \"stand_talk_loop_b_female\"},\r\n            {dict = \"missfbi3_party_d\", anim = \"stand_talk_loop_a_female\"},\r\n            {dict = \"rcmnigel1cnmt_1c\", anim = \"price_tag\"},\r\n        },\r\n    },\r\n    camera = {\r\n        position = {\r\n            x = 0.0,\r\n            y = 0.8,\r\n            z = 0.7,\r\n        },\r\n        offset = {\r\n            x = 0.0,\r\n            y = 0.0,\r\n            z = 0.5,\r\n        },\r\n        fov = 65.0,\r\n        ease = true,\r\n        easeTime = 1000,\r\n    },\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<div class=\"video-container\"><\/div>","protected":false},"excerpt":{"rendered":"<p><strong>HOE HET WERKT?<\/strong> Het script werkt als volgt: eerst maken we een camera en een dialoog met de opgegeven opties. Als er geen opties worden meegeleverd, zal het script intu\u00eftief verwijzen naar het configuratiebestand waar alles in staat. We hebben gezorgd voor ruime configuratieopties zodat iedereen de dialoog naar eigen wens kan aanpassen.<\/p>\n<p><strong>PLUG &amp; USE<\/strong> Het script biedt een uniek dialoogsysteem met een breed scala aan configuratieopties. Raadpleeg de documentatie voordat je koopt of installeert.<\/p>","protected":false},"featured_media":157310,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[511,96,512],"product_tag":[],"class_list":["post-157309","product","type-product","status-publish","has-post-thumbnail","product_cat-standalone-scripts","product_cat-esx-scripts","product_cat-qbcore-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/nl\/wp-json\/wp\/v2\/product\/157309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/nl\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/nl\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/nl\/wp-json\/wp\/v2\/comments?post=157309"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/nl\/wp-json\/wp\/v2\/media\/157310"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/nl\/wp-json\/wp\/v2\/media?parent=157309"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/nl\/wp-json\/wp\/v2\/product_brand?post=157309"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/nl\/wp-json\/wp\/v2\/product_cat?post=157309"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/nl\/wp-json\/wp\/v2\/product_tag?post=157309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}