{"id":50301,"date":"2022-11-08T19:28:20","date_gmt":"2022-11-08T18:28:20","guid":{"rendered":"https:\/\/fivem-mods.net\/?post_type=product&#038;p=50301"},"modified":"2025-12-24T07:29:40","modified_gmt":"2025-12-24T06:29:40","slug":"okokrequests","status":"publish","type":"product","link":"https:\/\/fivemx.com\/fr\/okokrequests\/","title":{"rendered":"okokRequ\u00eates"},"content":{"rendered":"<p><a href=\"https:\/\/streamable.com\/7ux8kg\" target=\"_blank\" rel=\"noopener\">https:\/\/streamable.com\/7ux8kg<\/a><\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"installation-guide\">Installation Guide<\/h2>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\" id=\"displaying-a-request\">Displaying a request<\/h4>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\" id=\"client-side\">Client side<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">exports[\/fusion_builder_column][fusion_builder_column type=&#8221;1_1&#8243; background_position=&#8221;left top&#8221; background_color=&#8221;&#8221; border_size=&#8221;&#8221; border_color=&#8221;&#8221; border_style=&#8221;solid&#8221; spacing=&#8221;yes&#8221; background_image=&#8221;&#8221; background_repeat=&#8221;no-repeat&#8221; padding=&#8221;&#8221; margin_top=&#8221;0px&#8221; margin_bottom=&#8221;0px&#8221; class=&#8221;&#8221; id=&#8221;&#8221; animation_type=&#8221;&#8221; animation_speed=&#8221;0.3&#8243; animation_direction=&#8221;left&#8221; hide_on_mobile=&#8221;no&#8221; center_content=&#8221;no&#8221; min_height=&#8221;none&#8221;][&#8216;okokRequests&#8217;]:requestMenu(target, time, title, message, trigger, side, parameters, parametersNum)<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\" id=\"server-side\">Server side<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">TriggerClientEvent(&#8216;okokRequests:RequestMenu&#8217;, source, target, time, title, message, trigger, side, parameters, parametersNum)<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Fields:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>The <strong>target<\/strong> field defines who receives the request;<\/li>\r\n\r\n\r\n\r\n<li>The <strong>time<\/strong> field lets you set the time the request window will stay on the screen;<\/li>\r\n\r\n\r\n\r\n<li>The <strong>title<\/strong> field is where you set the request title;<\/li>\r\n\r\n\r\n\r\n<li>The <strong>message<\/strong> field lets you choose the message that will appear on the request window;<\/li>\r\n\r\n\r\n\r\n<li>The <strong>trigger<\/strong> field is where you choose the event that will be executed;<\/li>\r\n\r\n\r\n\r\n<li>The <strong>side<\/strong> (client\/server) field allows you to choose if the trigger is client or server sided;<\/li>\r\n\r\n\r\n\r\n<li>The <strong>parameters<\/strong> field contains the parameters the trigger takes;<\/li>\r\n\r\n\r\n\r\n<li>The <strong>parametersNum<\/strong> field are the number of paramenters used.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\" id=\"example\">Example<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">TriggerClientEvent(&#8216;okokRequests:RequestMenu&#8217;, source, tonumber(args[1]), 10000, &#8216;&lt;i class=&#8221;fas fa-question-circle&#8221;&gt;&lt;\/i&gt;&amp;nbsp;Job Offer&#8217;, &#8216;Tommy wants to hire you.&#8217;, &#8216;client&#8217;, &#8216;parameter1,parameter2,parameter3,parameter4,parameter5&#8217;, 5)<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\" id=\"important\">Important<\/h4>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>The <strong>side<\/strong> field should be either <code>client<\/code> or <code>server<\/code>;<\/li>\r\n\r\n\r\n\r\n<li>The <strong>parameters<\/strong> field needs to be a string, all parameters need to be separated by a comma &#8216;,&#8217; and without any spaces;<\/li>\r\n\r\n\r\n\r\n<li>Always set the number of parameters used, in the <strong>parametersNum<\/strong> field;<\/li>\r\n\r\n\r\n\r\n<li>If you don&#8217;t have any parameters, you don&#8217;t need to add the <strong>parameters<\/strong> and the <strong>parametersNum<\/strong> field.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\" id=\"dark-light-theme\">Dark\/light theme<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">To enable\/disable the dark\/light mode, you should go to the <strong>scripts.js<\/strong> file and navigate to the line 1, if <strong>var darkMode<\/strong> is set to <strong>true<\/strong>, the <strong>dark theme<\/strong> will be enabled, otherwise it the enabled theme will be the <strong>light<\/strong>.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>D\u00e9finissez le\u00a0:<\/p>\n<ul>\n<li>Titre;<\/li>\n<li>Message;<\/li>\n<li>Temps.<\/li>\n<\/ul>\n<p>GUIDE ci-dessous ! \u00a0<\/p>","protected":false},"featured_media":50302,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[2892],"product_cat":[96,512,2907,511,243],"product_tag":[2678],"class_list":["post-50301","product","type-product","status-publish","has-post-thumbnail","product_brand-okok-scripts","product_cat-esx-scripts","product_cat-qbcore-scripts","product_cat-qbox-scripts","product_cat-standalone-scripts","product_cat-vrp-scripts","product_tag-okok","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product\/50301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/comments?post=50301"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media\/50302"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media?parent=50301"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_brand?post=50301"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_cat?post=50301"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_tag?post=50301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}