{"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":"dialogue-avec-le-pnj","status":"publish","type":"product","link":"https:\/\/rpcrate.com\/fr\/shop\/dialog-with-npc\/","title":{"rendered":"Dialogue avec le PNJ"},"content":{"rendered":"<div class=\"video-container\"><iframe loading=\"lazy\" title=\"Dialogue avec NPC | Script FiveM\" 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<h2>Fichier de configuration<\/h2>\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>","protected":false},"excerpt":{"rendered":"<p><strong>COMMENT \u00c7A MARCHE?<\/strong> Le script fonctionne comme suit : tout d&#039;abord, nous cr\u00e9ons une cam\u00e9ra et une bo\u00eete de dialogue avec les options sp\u00e9cifi\u00e9es. Si aucune option n&#039;est fournie, le script se r\u00e9f\u00e9rera intuitivement au fichier de configuration o\u00f9 tout est inclus. Nous avons pr\u00e9vu de nombreuses options de configuration afin que chacun puisse personnaliser la bo\u00eete de dialogue selon ses besoins.<\/p>\n<p><strong>BRANCHER ET UTILISER<\/strong> Le script propose un syst\u00e8me de dialogue unique avec un large \u00e9ventail d&#039;options de configuration. Avant d&#039;acheter ou d&#039;installer, assurez-vous de consulter la documentation.<\/p>","protected":false},"featured_media":157310,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[96,512,511],"product_tag":[],"class_list":["post-157309","product","type-product","status-publish","has-post-thumbnail","product_cat-esx-scripts","product_cat-qbcore-scripts","product_cat-standalone-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/rpcrate.com\/fr\/wp-json\/wp\/v2\/product\/157309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rpcrate.com\/fr\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/rpcrate.com\/fr\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/rpcrate.com\/fr\/wp-json\/wp\/v2\/comments?post=157309"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rpcrate.com\/fr\/wp-json\/wp\/v2\/media\/157310"}],"wp:attachment":[{"href":"https:\/\/rpcrate.com\/fr\/wp-json\/wp\/v2\/media?parent=157309"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/rpcrate.com\/fr\/wp-json\/wp\/v2\/product_brand?post=157309"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/rpcrate.com\/fr\/wp-json\/wp\/v2\/product_cat?post=157309"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/rpcrate.com\/fr\/wp-json\/wp\/v2\/product_tag?post=157309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}