{"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\/pl\/dialog-with-npc\/","title":{"rendered":"Dialog z 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>Plik konfiguracyjny<\/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>JAK TO DZIA\u0141A?<\/strong> Skrypt dzia\u0142a w nast\u0119puj\u0105cy spos\u00f3b: najpierw tworzymy kamer\u0119 i okno dialogowe z okre\u015blonymi opcjami. Je\u015bli nie podano \u017cadnych opcji, skrypt intuicyjnie odwo\u0142uje si\u0119 do pliku konfiguracyjnego, w kt\u00f3rym wszystko jest zawarte. Zadbali\u015bmy o wiele opcji konfiguracyjnych, aby ka\u017cdy m\u00f3g\u0142 dostosowa\u0107 okno dialogowe do swoich potrzeb.<\/p>\n<p><strong>W\u0141\u0104CZ I U\u017bYWAJ<\/strong> Skrypt oferuje unikalny system dialogowy z szerokim zakresem opcji konfiguracyjnych. Przed zakupem lub instalacj\u0105 zapoznaj si\u0119 z dokumentacj\u0105.<\/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\/pl\/wp-json\/wp\/v2\/product\/157309","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=157309"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media\/157310"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media?parent=157309"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_brand?post=157309"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_cat?post=157309"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_tag?post=157309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}